title: sqlParameters Array in VB.Net
body: <p>I'm trying to create a typed-sized parameters array in VB.Net:</p>
  
  <pre><code>Dim parameters() As SqlParameter = New SqlParameter() _
          {
            New SqlParameter("@first_name", SqlDbType.VarChar, 50) {Value = "john"},
            New SqlParameter("@last_name", SqlDbType.VarChar, 50) {Value = "doe"},
            New SqlParameter("@age", SqlDbType.Int) {Value = 18},
            New SqlParameter("@id", SqlDbType.Int) {Value = 123}
          }
  </code></pre>
  
  <p>But VS says: Value' is not declared. It may be inaccessible due to its protection level</p>
  
  <p>What's wrong with the code above?</p>
  
  <p>Thanks!</p>