IndexOf()

StringCollection::IndexOf(const System::String&) const method

Looks for specific string in container.

int System::Collections::Specialized::StringCollection::IndexOf(const System::String &value) const

Arguments

ParameterTypeDescription
valueconst System::String&String to look for.

Return Value

Index of first occurrence of specified string or -1 if not found.

See Also