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)

列舉使用者針對特定識別碼提供者新增的所有帳戶。

FindAllAccountsAsync(WebAccountProvider, String)

列舉使用者針對特定識別碼提供者新增的所有帳戶。

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 帳戶提供者要求權杖。 如有必要,系統會提示使用者輸入其認證。

適用於

另請參閱