CoreWebView2Environment.CompareBrowserVersions(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two instances of browser versions correctly and returns an integer that indicates whether the first instance is older, the same as, or newer than the second instance.
public static int CompareBrowserVersions (string version1, string version2);
static member CompareBrowserVersions : string * string -> int
Public Shared Function CompareBrowserVersions (version1 As String, version2 As String) As Integer
Parameters
- version1
- String
One of the version strings to compare.
- version2
- String
The other version string to compare.
Returns
An integer that indicates whether the first instance is older, the same as, or newer than the second instance.
Value Type | Condition | |
---|---|---|
Less than zero | version1 is older than version2 . | |
Zero | version1 is the same as version2 . | |
Greater than zero | version1 is newer than version2 . |