共用方式為


ReadOnlyList<T>.IndexOf 方法

Determines the index of a specific item in the list.

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public Function IndexOf ( _
    item As T _
) As Integer
'用途
Dim instance As ReadOnlyList 
Dim item As T
Dim returnValue As Integer 

returnValue = instance.IndexOf(item)
public int IndexOf(
    T item
)
public:
int IndexOf(
    T item
)
member IndexOf : 
        item:'T -> int
public function IndexOf(
    item : T
) : int

參數

  • item
    型別:T
    The object to locate in the list.

傳回值

型別:System.Int32
The index of a specific item in the list.

請參閱

參考

ReadOnlyList<T> 結構

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間