Partager via


DataSourceVersionComparer.Compare(String, String) Method

Definition

Compares two data-source version strings and returns a value indicating whether one is less than, equal to, or greater than the other.

public:
 virtual int Compare(System::String ^ versionA, System::String ^ versionB);
public virtual int Compare (string versionA, string versionB);
abstract member Compare : string * string -> int
override this.Compare : string * string -> int
Public Overridable Function Compare (versionA As String, versionB As String) As Integer

Parameters

versionA
String

The first version number to compare.

versionB
String

The second version number to compare.

Returns

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

Applies to