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 该字符串不存在于集合中。

适用于