This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The ContainsString function searches for an occurrence of one specified string within another.
bool ContainsString( string sourceString, string searchString, bool ignoreCase );
The string that will be searched.
The string to search for within sourceString.
Indicates whether case should be ignored when matching. If true, case will be ignored; if false, case will be considered.
Returns true if searchString was found within sourceString; false if not.