GetFieldType 方法

Returns a data type for the column at the specified ordinal. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。

命名空间:  Microsoft.SqlServer.Management.Sdk.Sfc
程序集:  Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

语法

声明
Public Function GetFieldType ( _
    i As Integer _
) As Type
用法
Dim instance As DataProvider
Dim i As Integer
Dim returnValue As Type

returnValue = instance.GetFieldType(i)
public Type GetFieldType(
    int i
)
public:
virtual Type^ GetFieldType(
    int i
) sealed
abstract GetFieldType : 
        i:int -> Type 
override GetFieldType : 
        i:int -> Type 
public final function GetFieldType(
    i : int
) : Type

参数

返回值

类型:System. . :: . .Type
A data type for the column.

实现

IDataRecord. . :: . .GetFieldType(Int32)