共用方式為


TFStringComparer.Compare 方法 (String, Int32, String, Int32, Int32)

比較從指定索引處的指定字串。

命名空間:  Microsoft.TeamFoundation
組件:  Microsoft.TeamFoundation.Common (在 Microsoft.TeamFoundation.Common.dll 中)

語法

'宣告
Public Function Compare ( _
    x As String, _
    indexX As Integer, _
    y As String, _
    indexY As Integer, _
    length As Integer _
) As Integer
public int Compare(
    string x,
    int indexX,
    string y,
    int indexY,
    int length
)

參數

  • indexX
    型別:System.Int32
    進行比較的第一個索引。
  • indexY
    型別:System.Int32
    進行比較的第二個字串的索引。
  • length
    型別:System.Int32
    要比較的字元數從指定的索引。

傳回值

型別:System.Int32
零,如果字串相等。負數,如果 x 比 y 小於依排序順序。正數,如果 x 比 y 大於依排序順序

.NET Framework 安全性

請參閱

參考

TFStringComparer 類別

Compare 多載

Microsoft.TeamFoundation 命名空間