WebAuthenticationCoreManager 类

定义

包含用于从 Web 帐户提供程序获取令牌的核心方法。

public ref class WebAuthenticationCoreManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WebAuthenticationCoreManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class WebAuthenticationCoreManager
Public Class WebAuthenticationCoreManager
继承
Object Platform::Object IInspectable WebAuthenticationCoreManager
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

版本历史记录

Windows 版本 SDK 版本 增值
1607 14393 CreateWebAccountMonitor
1803 17134 FindAllAccountsAsync (WebAccountProvider)
1803 17134 FindAllAccountsAsync (WebAccountProvider,String)
1803 17134 FindSystemAccountProviderAsync (String)
1803 17134 FindSystemAccountProviderAsync (String,String)
1803 17134 FindSystemAccountProviderAsync (String,String,User)

方法

CreateWebAccountMonitor(IIterable<WebAccount>)

创建 Web 帐户监视器以watch给定帐户。

FindAccountAsync(WebAccountProvider, String)

异步尝试查找 Web 帐户提供程序。

FindAccountProviderAsync(String)

异步尝试查找 Web 帐户提供程序。

FindAccountProviderAsync(String, String)

异步尝试查找 Web 帐户提供程序。

FindAccountProviderAsync(String, String, User)

异步尝试查找 Web 帐户提供程序。

FindAllAccountsAsync(WebAccountProvider)

枚举用户为特定 ID 提供程序添加的所有帐户。

FindAllAccountsAsync(WebAccountProvider, String)

枚举用户为特定 ID 提供程序添加的所有帐户。

FindSystemAccountProviderAsync(String)

异步尝试查找用于设备范围的身份验证的 Web 帐户提供程序。

FindSystemAccountProviderAsync(String, String)

异步尝试查找用于设备范围的身份验证的 Web 帐户提供程序。

FindSystemAccountProviderAsync(String, String, User)

异步尝试查找用于设备范围的身份验证的 Web 帐户提供程序。

GetTokenSilentlyAsync(WebTokenRequest)

异步尝试在不显示任何 UI 的情况下获取令牌。 系统永远不会提示用户输入其凭据。

GetTokenSilentlyAsync(WebTokenRequest, WebAccount)

异步尝试在不显示任何 UI 的情况下获取令牌。 系统永远不会提示用户输入其凭据。

RequestTokenAsync(WebTokenRequest)

从 Web 帐户提供程序异步请求令牌。 如有必要,系统会提示用户输入其凭据。

RequestTokenAsync(WebTokenRequest, WebAccount)

从 Web 帐户提供程序异步请求令牌。 如有必要,系统会提示用户输入其凭据。

适用于

另请参阅