共用方式為


OsCapabilitiesExtensions.IsEmbeddedWebViewAvailable Method

Definition

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

public static bool IsEmbeddedWebViewAvailable (this Microsoft.Identity.Client.IPublicClientApplication publicClientApplication);
static member IsEmbeddedWebViewAvailable : Microsoft.Identity.Client.IPublicClientApplication -> bool
<Extension()>
Public Function IsEmbeddedWebViewAvailable (publicClientApplication As IPublicClientApplication) As Boolean

Parameters

publicClientApplication
IPublicClientApplication

Returns

Remarks

Currently there are no embedded webviews on Mac and Linux. On Windows, app developers or users should install the WebView2 runtime and this property will inform if the runtime is available, see https://aka.ms/msal-net-webview2

Applies to