Tests if the second string is contained by the first string with the supplied comparison operator

Namespace: NHINDirect
Assembly: nhinCommon (in nhinCommon.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static bool Contains(
	this string x,
	string y,
	StringComparison comparison
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function Contains ( _
	x As String, _
	y As String, _
	comparison As StringComparison _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool Contains(
	String^ x, 
	String^ y, 
	StringComparison comparison
)

Parameters

x
Type: System..::..String
The base string.
y
Type: System..::..String
The string to test if it is contained in the base string
comparison
Type: System..::..StringComparison
The comparison operator.

Return Value

true if the second string is contained in the first with respect to the supplied form of string comparison, false otherwise

See Also