DataReaderExtensions.GetData(DbDataReader, String) DataReaderExtensions.GetData(DbDataReader, String) DataReaderExtensions.GetData(DbDataReader, String) DataReaderExtensions.GetData(DbDataReader, String) Method

定义

返回所请求列的嵌套数据读取器。Returns a nested data reader for the requested column.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::DbDataReader ^ GetData(System::Data::Common::DbDataReader ^ reader, System::String ^ name);
public static System.Data.Common.DbDataReader GetData (this System.Data.Common.DbDataReader reader, string name);
static member GetData : System.Data.Common.DbDataReader * string -> System.Data.Common.DbDataReader
<Extension()>
Public Function GetData (reader As DbDataReader, name As String) As DbDataReader

参数

reader
DbDataReader DbDataReader DbDataReader DbDataReader

要从中获取列值的数据读取器。The data reader to get the column value from.

name
String String String String

列的名称。The name of the column.

返回

数据读取器。A data reader.

异常

指定的名称不是有效的列名。The name specified is not a valid column name.

适用于

另请参阅