This documentation is archived and is not being maintained.

TFStringComparer::StartsWith Method

Checks whether the specified string starts with the specified pattern.

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

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

Parameters

main
Type: System::String

The string to check.

pattern
Type: System::String

The pattern to search for.

Return Value

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

Show: