TFStringComparer.Compare Method (String, String)

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

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

IComparer<T>.Compare(T, T)

.NET Framework Security

See Also

Reference

TFStringComparer Class

Compare Overload

Microsoft.TeamFoundation Namespace