CategoryNameCollection.IndexOf(String) 方法
定义
获取指定值的索引。Gets the index of the specified value.
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
要在集合中检索其索引的类别名称。The category name to retrieve the index of in the collection.
返回
集合中的索引,如果集合中不存在此字符串则为 null。The index in the collection, or null if the string does not exist in the collection.