Microsoft.Web.WebView2.Core Namespace

Classes

CoreWebView2

WebView2 enables you to host web content using the latest Microsoft Edge browser and web technology.

CoreWebView2AcceleratorKeyPressedEventArgs

Event args for the AcceleratorKeyPressed event.

CoreWebView2BasicAuthenticationRequestedEventArgs

Event args for the BasicAuthenticationRequested event. Will contain the request that led to the HTTP authorization challenge, the challenge and allows the host to provide authentication response or cancel the request.

CoreWebView2BasicAuthenticationResponse

Represents a Basic HTTP authentication response that contains a user name and a password as according to RFC7617 (https://tools.ietf.org/html/rfc7617)

CoreWebView2BrowserExtension

Browser extension installed on current profile.

CoreWebView2BrowserProcessExitedEventArgs

Event args for the BrowserProcessExited event.

CoreWebView2Certificate

Represents a certificate. Gives access to a certificate's metadata.

CoreWebView2ClientCertificate

Represents a client certificate. Gives access to a certificate's metadata.

CoreWebView2ClientCertificateRequestedEventArgs

Event args for the ClientCertificateRequested event.

CoreWebView2CompositionController

This class is an extension of the CoreWebView2Controller class to support visual hosting.

CoreWebView2ContentLoadingEventArgs

Event args for the ContentLoading event.

CoreWebView2ContextMenuItem

Represents a context menu item of a context menu displayed by WebView.

CoreWebView2ContextMenuRequestedEventArgs

Event args for the ContextMenuRequested event.

CoreWebView2ContextMenuTarget

Represents the information regarding the context menu target. Includes the context selected and the appropriate data used for the actions of a context menu.

CoreWebView2Controller

This class is the owner of the CoreWebView2 object, and provides support for resizing, showing and hiding, focusing, and other functionality related to windowing and composition.

CoreWebView2ControllerOptions

Used to manage profile options that created by CreateCoreWebView2ControllerOptions().

CoreWebView2Cookie

Provides a set of properties that are used to manage a CoreWebView2Cookie.

CoreWebView2CookieList

A list of CoreWebView2Cookies.

CoreWebView2CookieManager

Creates, adds or updates, gets, or or view the cookies.

CoreWebView2CustomSchemeRegistration

Represents the registration of a custom scheme with the CoreWebView2Environment.

CoreWebView2Deferral

This is used to complete deferrals on event args that support getting deferrals using the GetDeferral method. This class implements IDisposable.

CoreWebView2DevToolsProtocolEventReceivedEventArgs

Event args for the DevToolsProtocolEventReceived event.

CoreWebView2DevToolsProtocolEventReceiver

A Receiver is created for a particular DevTools Protocol event and allows you to subscribe and unsubscribe from that event.

CoreWebView2DOMContentLoadedEventArgs

Event args for the DOMContentLoaded event.

CoreWebView2DownloadOperation

Represents a download operation. Gives access to a download's metadata and supports a user canceling, pausing, or resuming a download.

CoreWebView2DownloadStartingEventArgs

Event args for the DownloadStarting event.

CoreWebView2Environment

This represents the WebView2 Environment.

CoreWebView2EnvironmentOptions

Options used to create WebView2 Environment.

CoreWebView2ExecuteScriptResult

The result for ExecuteScriptWithResultAsync(String).

CoreWebView2File

Representation of a DOM File object passed via WebMessage.

CoreWebView2FileSystemHandle

Representation of a DOM FileSystemHandle object.

CoreWebView2Frame

CoreWebView2Frame provides direct access to the iframes information and handling.

CoreWebView2FrameCreatedEventArgs

Event args for the FrameCreated event.

CoreWebView2FrameInfo

Provides a set of properties for a frame in the CoreWebView2.

CoreWebView2HostObjectAsyncMethodContinuation
CoreWebView2HttpHeadersCollectionIterator

Iterator for a collection of HTTP headers.

CoreWebView2HttpRequestHeaders

HTTP request headers.

CoreWebView2HttpResponseHeaders

HTTP response headers.

CoreWebView2InitializationCompletedEventArgs

Event args for the CoreWebView2InitializationCompleted event.

CoreWebView2LaunchingExternalUriSchemeEventArgs

Event args for the LaunchingExternalUriScheme event.

CoreWebView2MoveFocusRequestedEventArgs

Event args for the MoveFocusRequested event.

CoreWebView2NavigationCompletedEventArgs

Event args for the NavigationCompleted event.

CoreWebView2NavigationStartingEventArgs

Event args for the NavigationStarting event.

CoreWebView2NewWindowRequestedEventArgs

Event args for the NewWindowRequested event.

CoreWebView2NonClientRegionChangedEventArgs

Event args for the NonClientRegionChanged event.

CoreWebView2Notification

An object that represents a HTML Notification object.

CoreWebView2NotificationReceivedEventArgs

Event args for the NotificationReceived.

CoreWebView2PermissionRequestedEventArgs

Event args for the PermissionRequested event.

CoreWebView2PermissionSetting

Provides a set of properties for a permission setting.

CoreWebView2PointerInfo

This mostly represents a combined win32 POINTER_INFO, POINTER_TOUCH_INFO, and POINTER_PEN_INFO object.

CoreWebView2PrintSettings

Settings used by the PrintToPdfAsync(String, CoreWebView2PrintSettings) method.

CoreWebView2ProcessExtendedInfo

Provides a set of properties for a process list with extended information in the CoreWebView2Environment.

CoreWebView2ProcessFailedEventArgs

Event args for the ProcessFailed event.

CoreWebView2ProcessInfo

Provides a set of properties for a process list in the CoreWebView2Environment.

CoreWebView2Profile

Multiple profiles can be created under a single user data directory but with separated cookies, user preference settings, and various data storage etc.. If the CoreWebView2 was created with a CoreWebView2ControllerOptions, the CoreWebView2Profile will match those specified options. Otherwise if this CoreWebView2 was created without a CoreWebView2ControllerOptions, then this will be the default CoreWebView2Profile for the corresponding CoreWebView2Environment.

CoreWebView2ScriptDialogOpeningEventArgs

Event args for the ScriptDialogOpening event.

CoreWebView2ScriptException

This interface represents a JavaScript exception.

CoreWebView2ServerCertificateErrorDetectedEventArgs

Event args for the ServerCertificateErrorDetected event.

CoreWebView2Settings

Defines properties that enable, disable, or modify WebView features.

CoreWebView2SharedBuffer

A shared memory based buffer object that is created by CreateSharedBuffer(UInt64). The object is presented to script as ArrayBuffer when posted to script with PostSharedBufferToScript(CoreWebView2SharedBuffer, CoreWebView2SharedBufferAccess, String).

CoreWebView2SourceChangedEventArgs

Event args for the SourceChanged event.

CoreWebView2Texture

Texture that will be presented to the browser.

CoreWebView2TextureStream

CoreWebView2 Texture Stream.

CoreWebView2TextureStreamErrorReceivedEventArgs

Texture stream error event argument.

CoreWebView2TextureStreamWebTextureReceivedEventArgs

Web texture received event argument.

CoreWebView2UpdateRuntimeResult

The UpdateRuntime result.

CoreWebView2WebMessageReceivedEventArgs

Event args for the WebMessageReceived event.

CoreWebView2WebResourceRequest

An HTTP request used with the WebResourceRequested event.

CoreWebView2WebResourceRequestedEventArgs

Event args for the WebResourceRequested event.

CoreWebView2WebResourceResponse

An HTTP response used with the WebResourceRequested event.

CoreWebView2WebResourceResponseReceivedEventArgs

Event args for the WebResourceResponseReceived event.

CoreWebView2WebResourceResponseView

View of the HTTP representation for a web resource response.

CoreWebView2WebTexture

Web Texture that receives from the Javascript.

CoreWebView2WindowFeatures

The window features for a WebView popup window.

EdgeNotFoundException

The exception that is thrown when an Edge installation is missing.

WebView2RuntimeNotFoundException

The exception that is thrown when an WebView2 Runtime installation is missing.

Structs

CoreWebView2Color

A value representing RGBA color (Red, Green, Blue, Alpha) for WebView2.

CoreWebView2Matrix4x4

This transform is used to calculate correct coordinates when calling CreateCoreWebView2PointerInfoFromPointerId(UInt32, IntPtr, Matrix4x4). This is equivalent to a D2D1_MATRIX_4X4_F.

CoreWebView2PhysicalKeyStatus

Contains the information packed into the LPARAM sent to a Win32 key event.

Enums

CoreWebView2BoundsMode

Mode for how the Bounds property is interpreted in relation to the RasterizationScale property.

CoreWebView2BrowserProcessExitKind

Specifies the browser process exit kind used in CoreWebView2BrowserProcessExitedEventArgs.

CoreWebView2BrowsingDataKinds

Indicates the kind of browsing data to clear. Or operations can be applied to create a mask representing multiple CoreWebView2BrowsingDataKinds. The resulting mask may be passed to ClearBrowsingDataAsync(CoreWebView2BrowsingDataKinds) or ClearBrowsingDataAsync(CoreWebView2BrowsingDataKinds, DateTime, DateTime) to clear the corresponding data.

CoreWebView2CapturePreviewImageFormat

Specifies the image format for the CapturePreviewAsync(CoreWebView2CapturePreviewImageFormat, Stream) method.

CoreWebView2CertificateKind

The kind of the CoreWebView2Certificate.

CoreWebView2ChannelSearchKind

The order that release channels are searched for during environment creation.

CoreWebView2ClientCertificateKind

The kind of the CoreWebView2ClientCertificate.

CoreWebView2ContextMenuItemKind

Specifies the menu item kind for the Kind property.

CoreWebView2ContextMenuTargetKind

Indicates the kind of context for which the context menu was created for the Kind property. This enum will always represent the active element that caused the context menu request. If there is a selection with multiple images, audio and text, for example, the element that the end user right clicks on within this selection will be the option represented by this enum.

CoreWebView2CookieSameSiteKind

Kind of cookie SameSite status used in the CoreWebView2Cookie class.

CoreWebView2DefaultDownloadDialogCornerAlignment

The default download dialog can be aligned to any of the WebView corners by setting the DefaultDownloadDialogCornerAlignment property. The default position is top-right corner.

CoreWebView2DownloadInterruptReason

The reason why the CoreWebView2DownloadOperation was interrupted.

CoreWebView2DownloadState

The state of the CoreWebView2DownloadOperation.

CoreWebView2FaviconImageFormat

The requested format to get the Favicon from GetFaviconAsync(CoreWebView2FaviconImageFormat).

CoreWebView2FileSystemHandleKind

Kind of CoreWebView2FileSystemHandle as described in FileSystemHandle.kind

CoreWebView2FileSystemHandlePermission

Allowed permissions of CoreWebView2FileSystemHandle as described in FileSystemHandle.requestPermission()

CoreWebView2FrameKind

Specifies the frame kind used in CoreWebView2FrameInfo.

CoreWebView2HostResourceAccessKind

Kind of cross origin resource access allowed for host resources during download.

CoreWebView2KeyEventKind

Specifies the key event kind that raises an AcceleratorKeyPressed event.

CoreWebView2MemoryUsageTargetLevel

Desired memory consumption level of a WebView.

CoreWebView2MouseEventKind

Mouse event kind used by SendMouseInput(CoreWebView2MouseEventKind, CoreWebView2MouseEventVirtualKeys, UInt32, Point) to convey the kind of mouse event being sent to WebView.

CoreWebView2MouseEventVirtualKeys

Mouse event virtual keys associated with a CoreWebView2MouseEventKind for SendMouseInput(CoreWebView2MouseEventKind, CoreWebView2MouseEventVirtualKeys, UInt32, Point).

CoreWebView2MoveFocusReason

Specifies the reason for moving focus.

CoreWebView2NavigationKind

Specifies the navigation kind of each navigation.

CoreWebView2NonClientRegionKind

Enum which represents the kind of non-client regions.

CoreWebView2PdfToolbarItems

Specifies the PDF toolbar item types used for the HiddenPdfToolbarItems.

CoreWebView2PermissionKind

Indicates the kind of a permission request.

CoreWebView2PermissionState

Specifies the response to a permission request.

CoreWebView2PointerEventKind

Pointer event kind used by SendPointerInput(CoreWebView2PointerEventKind, CoreWebView2PointerInfo) to convey the kind of pointer event being sent to WebView.

CoreWebView2PreferredColorScheme

Preferred color scheme for WebView2's associated with a profile.

CoreWebView2PrintCollation

Specifies the collation for a print.

CoreWebView2PrintColorMode

Specifies the color mode for a print.

CoreWebView2PrintDialogKind

Specifies the print dialog kind.

CoreWebView2PrintDuplex

Specifies the duplex option for a print.

CoreWebView2PrintMediaSize

Specifies the media size for a print.

CoreWebView2PrintOrientation

The orientation for printing, used by the Orientation property.

CoreWebView2PrintStatus

Indicates the status for printing.

CoreWebView2ProcessFailedKind

Specifies the process failure kind used in CoreWebView2ProcessFailedEventArgs. The values in this enum make reference to the process kinds in the Chromium architecture. For more information about what these processes are and what they do, see Browser Architecture - Inside look at modern web browser.

CoreWebView2ProcessFailedReason

Specifies the process failure reason used in CoreWebView2ProcessFailedEventArgs. For process failures where a process has exited, it indicates the type of issue that produced the process exit.

CoreWebView2ProcessKind

Specifies the process kind used in CoreWebView2ProcessInfo.

CoreWebView2ReleaseChannels

Specifies the WebView2 release channel.

CoreWebView2ScriptDialogKind

Specifies the JavaScript dialog kind used in CoreWebView2ScriptDialogOpeningEventArgs.

CoreWebView2ScrollbarStyle

The ScrollBar style being set during environment creation.

CoreWebView2ServerCertificateErrorAction

Specifies the action type when server certificate error is detected to be used in the CoreWebView2ServerCertificateErrorDetectedEventArgs.

CoreWebView2SharedBufferAccess

Specifies the desired access from script to CoreWebView2SharedBuffer.

CoreWebView2TextDirectionKind

Indicates the text direction of the notification.

CoreWebView2TextureStreamErrorKind

Error info with enum value.

CoreWebView2TrackingPreventionLevel

Tracking prevention levels.

CoreWebView2UpdateRuntimeStatus

Status of UpdateRuntime operation result.

CoreWebView2WebErrorStatus

Indicates the error status values for web navigations.

CoreWebView2WebResourceContext

Specifies the web resource request contexts.

CoreWebView2WebResourceRequestSourceKinds

Specifies the source of WebResourceRequested.