Partager via


Méthode GetFieldType

Returns a data type for the column at the specified ordinal. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Public Function GetFieldType ( _
    i As Integer _
) As Type
'Utilisation
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

Paramètres

Valeur de retour

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

Implémente

IDataRecord. . :: . .GetFieldType(Int32)