Поделиться через


ModelCollationComparer.Compare Method (ModelIdentifier, ModelIdentifier)

Compares two specified ModelIdentifier objects and returns an integer that indicates their relationship to each other in the sort order.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Function Compare ( _
    x As ModelIdentifier, _
    y As ModelIdentifier _
) As Integer
public int Compare(
    ModelIdentifier x,
    ModelIdentifier y
)
public:
virtual int Compare(
    ModelIdentifier^ x, 
    ModelIdentifier^ y
) sealed
abstract Compare : 
        x:ModelIdentifier * 
        y:ModelIdentifier -> int 
override Compare : 
        x:ModelIdentifier * 
        y:ModelIdentifier -> int 
public final function Compare(
    x : ModelIdentifier, 
    y : ModelIdentifier
) : int

Parameters

Return Value

Type: System.Int32
An Int32 that indicates the lexical relationship between the two objects.

Value

Condition

Less than zero

x is less than y.

Zero

x equals y.

Greater than zero

x is greater than y.

Implements

IComparer<T>.Compare(T, T)

.NET Framework Security

See Also

Reference

ModelCollationComparer Class

Compare Overload

Microsoft.Data.Schema.SchemaModel Namespace

Compare