Partager via


GetFieldType méthode

Returns the field type of the data value at the specified column position.

Espace de noms :  Microsoft.SqlServer.Management.Trace
Assembly :  Microsoft.SqlServer.ConnectionInfoExtended (dans Microsoft.SqlServer.ConnectionInfoExtended.dll)

Syntaxe

'Déclaration
Public Function GetFieldType ( _
    ordinal As Integer _
) As Type
'Utilisation
Dim instance As TraceReader
Dim ordinal As Integer
Dim returnValue As Type

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

Paramètres

Valeur de retour

Type : System. . :: . .Type
A Type system object value that specifies the field type of the data value.

Implémente

IDataRecord. . :: . .GetFieldType(Int32)

Notes

The value returned corresponds to the type of Object value that is returned from GetValue method.

Exemples

Readme_Tracer