System::Collections::Specialized::StringCollection::IndexOf 方法

StringCollection::IndexOf method

在容器中查找特定字符串。

int System::Collections::Specialized::StringCollection::IndexOf(const System::String &value) const
参数类型描述
valueconst System::String&String 要查找的字符串。

ReturnValue

指定字符串首次出现的索引,如果未找到则返回 -1。

另见