共用方式為


AdoDotNetConnectionSupport.CompareVersions(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 CompareVersions(System::String ^ versionA, System::String ^ versionB);
public virtual int CompareVersions (string versionA, string versionB);
abstract member CompareVersions : string * string -> int
override this.CompareVersions : string * string -> int
Public Overridable Function CompareVersions (versionA As String, versionB As String) As Integer

Parameters

versionA
String

The first of two versions to compare.

versionB
String

The second of two versions to compare.

Returns

Returns an integer specifying the following:Less than zero: versionA is less than versionB;Equal to zero: versionA is equal to versionB;Greater than zero: versionA is greater than versionB.

Applies to