This documentation is archived and is not being maintained.

DataServiceProviderMethods.Compare Method (String, String)

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

Returns comparison information for string parameters in an operation expression.

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

public static int Compare(
	string left,
	string right
)

Parameters

left
Type: System.String
The first parameter value.
right
Type: System.String
The second parameter value.

Return Value

Type: System.Int32

Value

Condition

-1

left is less than right.

0

x equals y.

1

left is greater than right.

The comparison is performed by ordinal order.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: