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 two specified lists of String objects and returns an integer that indicates their relationship to each other in the sort order.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Function Compare ( _
x As IList(Of String), _
y As IList(Of String) _
) As Integer
public int Compare(
IList<string> x,
IList<string> y
)
public:
virtual int Compare(
IList<String^>^ x,
IList<String^>^ y
) sealed
abstract Compare :
x:IList<string> *
y:IList<string> -> int
override Compare :
x:IList<string> *
y:IList<string> -> int
public final function Compare(
x : IList<String>,
y : IList<String>
) : int
Parameters
- x
Type: System.Collections.Generic.IList<String>
An IList<T> of type string that represents the source object.
- y
Type: System.Collections.Generic.IList<String>
An IList<T> of type string that represents the target object.
Return Value
Type: System.Int32
A 32-bit signed integer that indicates the lexical relationship between the two comparands.
Value |
Condition |
---|---|
Less than zero |
x is less than y. |
Zero |
x equals y. |
Greater than zero |
x is greater than y. |
Implements
.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.