TraceReader.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

매개 변수

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

반환 값

유형: 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

참고 항목

참조

TraceReader 클래스

Microsoft.SqlServer.Management.Trace 네임스페이스

관련 자료

추적 플래그(Transact-SQL)

SQL Server Profiler 템플릿 및 권한