Skip to main content

VerUtil Class

Managed wrapper for verutil.

Methods

MethodDescription
CompareParsedVersions()
CompareStringVersions()
CopyVersion(version)Clone the version.
ParseVersion(version, strict)Parse a version.
VersionFromQword(version)Parse version from qword.

WixToolset.Mba.Core.dll version 4.0.5+b9b2f1b4c69a1b509d487dc950b30b4ec9b0d040

CompareParsedVersions() Method

Declaration

public static int CompareParsedVersions()

Return value

int 0 if equal, 1 if version1 {'>'} version2, -1 if version1 {'<'} version2

CompareStringVersions() Method

Declaration

public static int CompareStringVersions()

Return value

int 0 if equal, 1 if version1 {'>'} version2, -1 if version1 {'<'} version2

CopyVersion(version) Method

Clone the version.

Declaration

public static VerUtilVersion CopyVersion(
VerUtilVersion version
)

Parameters

ParameterTypeDescription
versionVerUtilVersionSource version

Return value

VerUtilVersion Cloned version

ParseVersion(version, strict) Method

Parse a version.

Declaration

public static VerUtilVersion ParseVersion(
string version,
bool strict
)

Parameters

ParameterTypeDescription
versionstringSource version
strictboolWhether to throw exception on invalid version.

Return value

VerUtilVersion Parsed version

VersionFromQword(version) Method

Parse version from qword.

Declaration

public static VerUtilVersion VersionFromQword(
System.Int64 version
)

Parameters

ParameterTypeDescription
versionSystem.Int64Source version

Return value

VerUtilVersion Parsed version