Lire en anglais

Partager via


DataSourceVersionComparer.IComparer<String>.Compare Method

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

int IComparer<string>.Compare(
    string x,
    string y
)

Parameters

Return Value

Type: System.Int32
Returns one of three integer values:

  1. Less than zero: versionA is less than versionB.

  2. Equal to zero: versionA equals versionB.

  3. Greater than zero: versionA is greater than versionB.

Implements

IComparer<T>.Compare(T, T)

.NET Framework Security

See Also

Reference

DataSourceVersionComparer Class

Microsoft.VisualStudio.Data Namespace