WebViewExecutionMode WebViewExecutionMode WebViewExecutionMode WebViewExecutionMode Enum


Defines constants that specify whether WebView hosts HTML content on the UI thread or on a non-UI thread.

public : enum class WebViewExecutionMode
enum class winrt::Windows::UI::Xaml::Controls::WebViewExecutionMode : int32_t
public enum WebViewExecutionMode
Public Enum WebViewExecutionMode

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


SameThread SameThread SameThread SameThread 0

Content is hosted on the UI thread.

SeparateProcess SeparateProcess SeparateProcess SeparateProcess 2

Content is hosted on a separate process off the app process. All of an app's WebView instances share the same separate process, there is not a separate process per WebView instance.

SeparateThread SeparateThread SeparateThread SeparateThread 1

Content is hosted on a background thread.


Version history

Version SDK version Value added
1803 17134 SeparateProcess