SqlDataRecord.GetSqlValues(Object[]) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the values for all the columns in the record, expressed as SQL Server types, in an array.
public:
virtual int GetSqlValues(cli::array <System::Object ^> ^ values);
public virtual int GetSqlValues (object[] values);
abstract member GetSqlValues : obj[] -> int
override this.GetSqlValues : obj[] -> int
Public Overridable Function GetSqlValues (values As Object()) As Integer
- values
- Object[]
The array into which to copy the values column values.
An Int32 that indicates the number of columns copied.
values
is null
.
There is a type mismatch.
The SQL Server type values of the column are copied into the values
array that is passed as a parameter. For null values, a Sql type instance is returned where the IsNull property is true.
The length of the values
array does not need to match the number of columns in the record. If the array length is greater than the number of columns, all of the column values are copied into the array; if it is less, only the array length number of column values are copied into the array, starting at the column value with ordinal 0.
Termék | Verziók |
---|---|
SqlClient .NET Core | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |
SqlClient .NET Framework | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |
SqlClient .NET Standard | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |