Contains()

String::Contains(const String&) const method

Checks if str is a substring of current string.

bool System::String::Contains(const String &str) const

Arguments

ParameterTypeDescription
strconst String&Lookup string.

Return Value

true if substring is present, false otherwise.

See Also