VerUtil Class
Managed wrapper for verutil.
Methods
Method | Description |
---|---|
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.6+73c897383236ddbbbc6ba257634013c1269ceec2
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
Parameter | Type | Description |
---|---|---|
version | VerUtilVersion | Source version |
Return value
VerUtilVersion
Cloned version
ParseVersion(version, strict) Method
Parse a version.
Declaration
public static VerUtilVersion ParseVersion(
string version,
bool strict
)
Parameters
Parameter | Type | Description |
---|---|---|
version | string | Source version |
strict | bool | Whether 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
Parameter | Type | Description |
---|---|---|
version | System.Int64 | Source version |
Return value
VerUtilVersion
Parsed version