Partilhar via


GenerateManifestBase.CompareFrameworkVersions(String, String) Method

Definition

Compares two .NET Framework versions and determines which version comes before the other one.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected public:
 int CompareFrameworkVersions(System::String ^ versionA, System::String ^ versionB);
protected internal int CompareFrameworkVersions (string versionA, string versionB);
member this.CompareFrameworkVersions : string * string -> int
Protected Friend Function CompareFrameworkVersions (versionA As String, versionB As String) As Integer

Parameters

versionA
String

The first .NET Framework version to compare.

versionB
String

The second .NET Framework version to compare.

Returns

An integer value that specifies the sort order position of a .NET Framework version instance relative to another version instance. A value of 0 means the two values are equal, a value of -1 indicates that versionA precedes versionB, and a value of 1 indicates that versionA comes after versionB.

Applies to