GetOrdinal 方法
Gets the ordinal value of the data value at the specified column position.
命名空間: Microsoft.SqlServer.Management.Trace
組件: Microsoft.SqlServer.ConnectionInfoExtended (在 Microsoft.SqlServer.ConnectionInfoExtended.dll 中)
語法
'宣告
Public Function GetOrdinal ( _
name As String _
) As Integer
'用途
Dim instance As TraceReader
Dim name As String
Dim returnValue As Integer
returnValue = instance.GetOrdinal(name)
public int GetOrdinal(
string name
)
public:
virtual int GetOrdinal(
String^ name
) sealed
abstract GetOrdinal :
name:string -> int
override GetOrdinal :
name:string -> int
public final function GetOrdinal(
name : String
) : int
參數
- name
型別:System. . :: . .String
傳回值
型別:System. . :: . .Int32
An Int32 value that specifies the ordinal value at the specified column position.