Share via


GeneralFunctions.GetValueFromReader Method

Definition

Overloads

GetValueFromReader(SqlDataReader, String)

Retrieves the value of name field in the reader.

GetValueFromReader(SqlDataReader, Int32)

Retrieves the value of the indexed field in the reader.

GetValueFromReader(SqlDataReader, String)

Retrieves the value of name field in the reader.

public:
 static System::String ^ GetValueFromReader(System::Data::SqlClient::SqlDataReader ^ reader, System::String ^ fieldName);
public static string GetValueFromReader (System.Data.SqlClient.SqlDataReader reader, string fieldName);
static member GetValueFromReader : System.Data.SqlClient.SqlDataReader * string -> string
Public Shared Function GetValueFromReader (reader As SqlDataReader, fieldName As String) As String

Parameters

reader
SqlDataReader

Specifies the SQL data reader.

fieldName
String

Specifies the field name whose value to fetch.

Returns

Applies to

GetValueFromReader(SqlDataReader, Int32)

Retrieves the value of the indexed field in the reader.

public:
 static System::String ^ GetValueFromReader(System::Data::SqlClient::SqlDataReader ^ reader, int index);
public static string GetValueFromReader (System.Data.SqlClient.SqlDataReader reader, int index);
static member GetValueFromReader : System.Data.SqlClient.SqlDataReader * int -> string
Public Shared Function GetValueFromReader (reader As SqlDataReader, index As Integer) As String

Parameters

reader
SqlDataReader

Specifies the SQL data reader.

index
Int32

Specifies the index of the item to fetch.

Returns

Applies to