This documentation is archived and is not being maintained.

TFStringComparer::EndsWith Method

Checks whether the specified string ends with the specified pattern.

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

public:
bool EndsWith(
	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 ends with the specified pattern; otherwise, false.

Show: