Click or drag to resize
StringContains Method
Returns a value indicating whether the specified String object occurs within this string.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public bool Contains(
	string value
)

Parameters

value
Type: SystemString
The string to seek.

Return Value

Type: Boolean
true if the value parameter occurs within this string, or if value is the empty string (""); otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
See Also