This documentation is archived and is not being maintained.

TFStringComparer::Compare Method (String, Int32, String, Int32, Int32)

Compares the specified strings from the specified indices.

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

public:
int Compare(
	String^ x, 
	int indexX, 
	String^ y, 
	int indexY, 
	int length
)

Parameters

x
Type: System::String

The first string to compare.

indexX
Type: System::Int32

The index of the first string from which to compare.

y
Type: System::String

The second string to compare.

indexY
Type: System::Int32

The index of the second string from which to compare.

length
Type: System::Int32

The number of characters to compare from the specified indices.

Return Value

Type: System::Int32
Zero if the strings are equal. A negative number if x is less than y in sort order. A positive number if x is greater than y in sort order

Show: