CoreWebView2Environment.GetAvailableBrowserVersionString 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.
Overloads
GetAvailableBrowserVersionString(String) |
Gets the browser version info including channel name if it is not the stable channel or WebView2 Runtime. |
GetAvailableBrowserVersionString(String, CoreWebView2EnvironmentOptions) |
Gets the browser version info including channel name if it is not the stable channel or WebView2 Runtime. |
GetAvailableBrowserVersionString(String)
Gets the browser version info including channel name if it is not the stable channel or WebView2 Runtime.
public static string GetAvailableBrowserVersionString (string browserExecutableFolder = default);
public static string GetAvailableBrowserVersionString (string browserExecutableFolder);
static member GetAvailableBrowserVersionString : string -> string
Public Shared Function GetAvailableBrowserVersionString (Optional browserExecutableFolder As String = Nothing) As String
Public Shared Function GetAvailableBrowserVersionString (browserExecutableFolder As String) As String
Parameters
- browserExecutableFolder
- String
The relative path to the folder that contains the WebView2 Runtime.
Returns
Exceptions
WebView2 Runtime installation is missing.
Applies to
GetAvailableBrowserVersionString(String, CoreWebView2EnvironmentOptions)
Gets the browser version info including channel name if it is not the stable channel or WebView2 Runtime.
public static string GetAvailableBrowserVersionString (string browserExecutableFolder = default, Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions environmentOptions = default);
static member GetAvailableBrowserVersionString : string * Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions -> string
Public Shared Function GetAvailableBrowserVersionString (Optional browserExecutableFolder As String = Nothing, Optional environmentOptions As CoreWebView2EnvironmentOptions = Nothing) As String
Parameters
- browserExecutableFolder
- String
The relative path to the folder that contains the WebView2 Runtime.
- environmentOptions
- CoreWebView2EnvironmentOptions
The environment options used to create the environment.
Returns
Exceptions
WebView2 Runtime installation is missing.