DataReaderExtensions.GetProviderSpecificFieldType(DbDataReader, String) 方法

定义

获取指定列的特定于提供程序的类型。Gets the provider-specific type of the specified column.

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

参数

reader
DbDataReader

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

name
String

列的名称。The name of the column.

返回

特定于提供程序的 .NET 类型。A provider-specific .NET type.

异常

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

适用于

另请参阅