Share via


PublicClientApplication.IsEmbeddedWebViewAvailable Method

Definition

Returns true if MSAL can use an embedded web view (web browser).

public bool IsEmbeddedWebViewAvailable ();
member this.IsEmbeddedWebViewAvailable : unit -> bool
Public Function IsEmbeddedWebViewAvailable () As Boolean

Returns

Remarks

All .NET Framework applications will use the legacy web view. .NET 6 and .NET Core applications must use the Microsoft.Identity.Client.Desktop package with WebView2. .NET 6 for Windows comes with WebView2 by default. WebView2 UI is only shown for non-AAD authorities. Refer to our documentation for additional details.

Applies to