Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compares the specified strings from the specified indices.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
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
)
public:
int Compare(
String^ x,
int indexX,
String^ y,
int indexY,
int length
)
member Compare :
x:string *
indexX:int *
y:string *
indexY:int *
length:int -> int
public function Compare(
x : String,
indexX : int,
y : String,
indexY : int,
length : int
) : int
Parameters
x
Type: System.StringThe first string to compare.
indexX
Type: System.Int32The index of the first string from which to compare.
y
Type: System.StringThe second string to compare.
indexY
Type: System.Int32The index of the second string from which to compare.
length
Type: System.Int32The number of characters to compare from the specified indices.
Return Value
Type: System.Int32
Zero if the strings are equal. A negative number if x is less than y in sort order. A positive number if x is greater than y in sort order
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.