共用方式為


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 範本和權限