Поделиться через


Метод GetFieldType

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

Пространство имен:  Microsoft.SqlServer.Management.Trace
Сборка:  Microsoft.SqlServer.ConnectionInfoExtended (в Microsoft.SqlServer.ConnectionInfoExtended.dll)

Синтаксис

'Декларация
Public Function GetFieldType ( _
    ordinal As Integer _
) As Type
'Применение
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

Параметры

Возвращаемое значение

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

Реализует

IDataRecord. . :: . .GetFieldType(Int32)

Замечания

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

Примеры

Readme_Tracer