Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Compares two data-source version strings and returns a value indicating whether one is less than, equal to, or greater than the other.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Private Function Compare ( _
x As String, _
y As String _
) As Integer Implements IComparer(Of String).Compare
int IComparer<string>.Compare(
string x,
string y
)
private:
virtual int Compare(
String^ x,
String^ y
) sealed = IComparer<String^>::Compare
private abstract Compare :
x:string *
y:string -> int
private override Compare :
x:string *
y:string -> int
JScript does not support explicit interface implementations.
Parameters
- x
Type: System.String
The first version number to compare.
- y
Type: System.String
The second version number to compare.
Return Value
Type: System.Int32
Returns one of three integer values:
Less than zero: versionA is less than versionB.
Equal to zero: versionA equals versionB.
Greater than zero: versionA is greater than versionB.
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.