System::Collections::Specialized::StringCollection::IndexOf‑metod

StringCollection::IndexOf method

Söker efter specifik sträng i behållaren.

int System::Collections::Specialized::StringCollection::IndexOf(const System::String &value) const
ParameterTypeBeskrivning
valueconst System::String&String att söka efter.

ReturnValue

Index för första förekomsten av den angivna strängen eller -1 om den inte hittas.

Se även