A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqldatareader.getsqlvalues below:

SqlDataReader.GetSqlValues(Object[]) Method (System.Data.SqlClient) | Microsoft Learn

SqlDataReader.GetSqlValues(Object[]) Method Definition

Fills an array of Object that contains the values for all the columns in the record, expressed as SQL Server types.

public:
 virtual int GetSqlValues(cli::array <System::Object ^> ^ values);
public:
 int GetSqlValues(cli::array <System::Object ^> ^ values);
public virtual int GetSqlValues(object[] values);
public int GetSqlValues(object[] values);
abstract member GetSqlValues : obj[] -> int
override this.GetSqlValues : obj[] -> int
member this.GetSqlValues : obj[] -> int
Public Overridable Function GetSqlValues (values As Object()) As Integer
Public Function GetSqlValues (values As Object()) As Integer
Parameters
values
Object[]

An array of Object into which to copy the values. The column values are expressed as SQL Server types.

Returns

An integer indicating the number of columns copied.

Exceptions Remarks

Returns the values for all the columns in the record in a single call, using the SQL type system instead of the CLR type system. The length of the Object array does not need to match the number of columns in the record. You can pass an Object array that contains fewer than the number of columns contained in the record. Only the amount of data the Object array holds is copied to the array, starting at the column with ordinal 0. You can also pass an Object array whose length is more than the number of columns contained in the resulting row. Any remaining columns are untouched.

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4