Delen via


VersionControlPath.CompareUI Method (String, String, Int32, Int32)

Compares two Version Control item paths for display (culture-sensitive and case-insensitive).

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

Syntax

'Declaration
Public Shared Function CompareUI ( _
    item1 As String, _
    item2 As String, _
    item1Length As Integer, _
    item2Length As Integer _
) As Integer
public static int CompareUI(
    string item1,
    string item2,
    int item1Length,
    int item2Length
)
public:
static int CompareUI(
    String^ item1, 
    String^ item2, 
    int item1Length, 
    int item2Length
)
static member CompareUI : 
        item1:string * 
        item2:string * 
        item1Length:int * 
        item2Length:int -> int
public static function CompareUI(
    item1 : String, 
    item2 : String, 
    item1Length : int, 
    item2Length : int
) : int

Parameters

  • item1Length
    Type: System.Int32

    Length of the first item to compare.

  • item2Length
    Type: System.Int32

    Length of the second item to compare.

Return Value

Type: System.Int32
0 if they are equal, greater than 0 if the first is greater, less than 0 if the second is greater.

.NET Framework Security

See Also

Reference

VersionControlPath Class

CompareUI Overload

Microsoft.TeamFoundation.VersionControl.Common Namespace