UtilitiesCompareVersions Method |
Typically, a version number is displayed as "major number.minor number.build number.private part number".
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static int CompareVersions(
string sRequiredVersion,
Version verTest
)
Public Shared Function CompareVersions (
sRequiredVersion As String,
verTest As Version
) As Integer
public:
static int CompareVersions(
String^ sRequiredVersion,
Version^ verTest
)
Parameters
- sRequiredVersion
- Type: SystemString
Version required - verTest
- Type: SystemVersion
Version of the binary being tested
Return Value
Type:
Int32Returns 0 if exact match, else greater than 0 if Required version greater than verTest
See Also