Compares the specified strings.
Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
声明
Public Overrides Function Compare ( _
    x As String, _
    y As String _
) As Integer
public override int Compare(
    string x,
    string y
)
public:
virtual int Compare(
    String^ x, 
    String^ y
) override
abstract Compare : 
        x:string * 
        y:string -> int 
override Compare : 
        x:string * 
        y:string -> int 
public override function Compare(
    x : String, 
    y : String
) : int
Parameters
- x
Type: System.String
The first string to compare. 
- y
Type: System.String
The second string to compare. 
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
Implements
.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.