DataServiceProviderMethods.Compare 方法 (String, String)
此 API 支援 基礎結構,但無法直接從您的程式碼使用。
傳回作業運算式中字串參數的比較資訊。
命名空間: System.Data.Services.Providers
組件: Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)
語法
'宣告
Public Shared Function Compare ( _
left As String, _
right As String _
) As Integer
'用途
Dim left As String
Dim right As String
Dim returnValue As Integer
returnValue = DataServiceProviderMethods.Compare(left, _
right)
public static int Compare(
string left,
string right
)
public:
static int Compare(
String^ left,
String^ right
)
static member Compare :
left:string *
right:string -> int
public static function Compare(
left : String,
right : String
) : int
參數
- left
型別:System.String
第一個參數值。
- right
型別:System.String
第二個參數值。
傳回值
型別:System.Int32
值 |
條件 |
---|---|
-1 |
left 小於 right。 |
0 |
x 等於 y。 |
1 |
left 大於 right。 |
備註
依序數順序執行比較。