CategoryNameCollection.IndexOf(String) 方法

定義

取得指定值的索引。

public:
 int IndexOf(System::String ^ value);
public int IndexOf (string value);
member this.IndexOf : string -> int
Public Function IndexOf (value As String) As Integer

參數

value
String

要在集合中擷取索引所屬的分類名稱。

傳回

集合中的索引;如果字串不存在於集合中,則為 null

適用於