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
CoreWebView2BasicAuthenticationResponse
CoreWebView2BrowserProcessExitedEventArgs

Event args for the BrowserProcessExited event.

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
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.

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.

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.

CoreWebView2HttpHeadersCollectionIterator

Iterator for a collection of HTTP headers.

CoreWebView2HttpRequestHeaders

HTTP request headers.

CoreWebView2HttpResponseHeaders

HTTP response headers.

CoreWebView2InitializationCompletedEventArgs

Event args for the CoreWebView2InitializationCompleted 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.

CoreWebView2PermissionRequestedEventArgs

Event args for the PermissionRequested event.

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. Other programmatic printing is not currently supported.

CoreWebView2ProcessFailedEventArgs

Event args for the ProcessFailed event.

CoreWebView2Profile
CoreWebView2ScriptDialogOpeningEventArgs

Event args for the ScriptDialogOpening event.

CoreWebView2Settings

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

CoreWebView2SourceChangedEventArgs

Event args for the SourceChanged event.

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.

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.

CoreWebView2CapturePreviewImageFormat

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

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
CoreWebView2DownloadInterruptReason

The reason why the CoreWebView2DownloadOperation was interrupted.

CoreWebView2DownloadState

The state of the CoreWebView2DownloadOperation.

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.

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.

CoreWebView2PrintOrientation

The orientation for printing, used by the Orientation property. Currently only printing to PDF is supported.

CoreWebView2ProcessFailedKind

Specifies the process failure kind used in CoreWebView2ProcessFailedEventArgs.

CoreWebView2ProcessFailedReason

Specifies the process failure reason used in CoreWebView2ProcessFailedEventArgs.

CoreWebView2ScriptDialogKind

Specifies the JavaScript dialog kind used in CoreWebView2ScriptDialogOpeningEventArgs.

CoreWebView2UpdateRuntimeStatus

Status of UpdateRuntime operation result.

CoreWebView2WebErrorStatus

Indicates the error status values for web navigations.

CoreWebView2WebResourceContext

Specifies the web resource request contexts.