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)

Syntax

声明
Public Function Compare ( _
    x As String, _
    indexX As Integer, _
    y As String, _
    indexY As Integer, _
    length As Integer _
) As Integer
public int Compare(
    string x,
    int indexX,
    string y,
    int indexY,
    int length
)
public:
int Compare(
    String^ x, 
    int indexX, 
    String^ y, 
    int indexY, 
    int length
)
member Compare : 
        x:string * 
        indexX:int * 
        y:string * 
        indexY:int * 
        length:int -> int 
public function Compare(
    x : String, 
    indexX : int, 
    y : String, 
    indexY : int, 
    length : int
) : int

Parameters

  • indexX
    Type: System.Int32
    The index of the first string from which 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

.NET Framework Security

See Also

Reference

TFStringComparer Class

Compare Overload

Microsoft.TeamFoundation Namespace