UserAuthenticationOperation 類別

定義

以非同步方式取得使用者的身分識別和對應的票證和屬性。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

public ref class UserAuthenticationOperation sealed : IAsyncOperation<UserIdentity ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UserAuthenticationOperation final : IAsyncOperation<UserIdentity>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UserAuthenticationOperation : IAsyncOperation<UserIdentity>
Public NotInheritable Class UserAuthenticationOperation
Implements IAsyncOperation(Of UserIdentity)
繼承
Object Platform::Object IInspectable UserAuthenticationOperation
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

Completed

取得或設定作業完成時所呼叫的處理常式。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

ErrorCode

取得作業失敗時的錯誤碼。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

Id

取得代表作業的唯一識別碼。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

Status

取得作業的目前狀態。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

方法

Cancel()

要求取消作業。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

Close()

與作業相關聯的要求應該終止。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

GetResults()

會傳回 UserIdentity 物件,其中包含使用者的相關資訊。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

適用於