Returns a value indicating whether the specified
String object occurs within this string.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public bool Contains(
string value
)
Parameters
- value
- Type: SystemString
The string to seek.
Return Value
Type:
Booleantrue if the
value parameter occurs within this string, or if
value is the empty string (""); otherwise, false.
Exceptions See Also