DataServiceProviderMethods.Compare Method (Guid, Guid)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns comparison information for GUID parameters in an operation expression.

Namespace:  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Shared Function Compare ( _
    left As Guid, _
    right As Guid _
) As Integer
'Usage
Dim left As Guid 
Dim right As Guid 
Dim returnValue As Integer 

returnValue = DataServiceProviderMethods.Compare(left, _
    right)
public static int Compare(
    Guid left,
    Guid right
)
public:
static int Compare(
    Guid left, 
    Guid right
)
static member Compare : 
        left:Guid * 
        right:Guid -> int
public static function Compare(
    left : Guid, 
    right : Guid
) : int

Parameters

Return Value

Type: System.Int32

Value

Condition

-1

left is less than right.

0

x equals y.

1

left is greater than right.

Remarks

The comparison is performed by byte order.

See Also

Reference

DataServiceProviderMethods Class

Compare Overload

System.Data.Services.Providers Namespace