This documentation is archived and is not being maintained.

TFStringComparer::Contains Method

Checks whether the specified string contains the specified pattern.

Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

public:
bool Contains(
	String^ main, 
	String^ pattern
)

Parameters

main
Type: System::String

The string to check.

pattern
Type: System::String

The pattern to check for.

Return Value

Type: System::Boolean
True if the specified string contains the specified pattern; otherwise, false.

Show: