channelSearchKind property
This property is EnvironmentChannelSearchKind.MOST_STABLE by default; environment creation searches for a release channel on the machine from most to least stable using the first channel found.
The default search order is: WebView2 Runtime -> Beta -> Dev -> Canary. Set channelSearchKind to EnvironmentChannelSearchKind.LEAST_STABLE to reverse the search order so that environment creation searches for a channel from least to most stable. If releaseChannels has been provided, the loader will only search for channels in the set. See EnvironmentReleaseChannels for more details on channels.
This property can be overridden by the corresponding registry key channelSearchKind
or the environment variable WEBVIEW2_CHANNEL_SEARCH_KIND.
Set the value to 1 to set the search kind to EnvironmentChannelSearchKind.LEAST_STABLE.
Officially Supported Platforms/Implementations:
- Windows WebView2 1.0.2478.35+ (Official API - ICoreWebView2EnvironmentOptions7.put_ChannelSearchKind)
Implementation
final EnvironmentChannelSearchKind? channelSearchKind;