Freigeben über


TraceReader.GetFieldType-Methode

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

Namespace:  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)

Syntax

'Declaration
Public Function GetFieldType ( _
    ordinal As Integer _
) As Type
'Usage
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

Parameter

  • ordinal
    Typ: System.Int32
    An Int32 value that specifies the column position of the data.

Rückgabewert

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

Implementiert

IDataRecord.GetFieldType(Int32)

Hinweise

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

Beispiele

Readme_Tracer

Siehe auch

Verweis

TraceReader Klasse

Microsoft.SqlServer.Management.Trace-Namespace

Andere Ressourcen

Ablaufverfolgungsflags (Transact-SQL)

Vorlagen und Berechtigungen in SQL Server Profiler