Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compare two Version Control paths and return their relative ordering. This is like Compare except that it sorts grandchildren after children.
Namespace: Microsoft.TeamFoundation.VersionControl.Common
Assembly: Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)
Syntax
'Declaration
Public Shared Function CompareTopDown ( _
item1 As String, _
item2 As String _
) As Integer
public static int CompareTopDown(
string item1,
string item2
)
public:
static int CompareTopDown(
String^ item1,
String^ item2
)
static member CompareTopDown :
item1:string *
item2:string -> int
public static function CompareTopDown(
item1 : String,
item2 : String
) : int
Parameters
item1
Type: System.StringFirst item to compare.
item2
Type: System.StringSecond 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.