UserAuthenticationOperation UserAuthenticationOperation UserAuthenticationOperation UserAuthenticationOperation Class

Definition

Asynchronously gets the user's identity and corresponding tickets and properties.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : sealed class UserAuthenticationOperation : IAsyncInfo, IAsyncOperation<UserIdentity>
public sealed class UserAuthenticationOperation : IAsyncInfo, IAsyncOperation<UserIdentity>
Public NotInheritable Class UserAuthenticationOperation Implements IAsyncInfo, IAsyncOperation<UserIdentity>
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Completed Completed Completed Completed

Gets or sets a handler that's called when the operation completes.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : AsyncOperationCompletedHandler<UserIdentity> Completed { get; set; }
public AsyncOperationCompletedHandler<UserIdentity> Completed { get; set; }
Public ReadWrite Property Completed As AsyncOperationCompletedHandler<UserIdentity>
var asyncOperationCompletedHandler = userAuthenticationOperation.completed;
userAuthenticationOperation.completed = asyncOperationCompletedHandler;

ErrorCode ErrorCode ErrorCode ErrorCode

Gets the error code should the operation fail.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : HResult ErrorCode { get; }
public Exception ErrorCode { get; }
Public ReadOnly Property ErrorCode As Exception
var exception = userAuthenticationOperation.errorCode;
Value
HResult Exception Exception Exception

The structure that contains the error code.

Id Id Id Id

Gets a unique identifier that represents the operation.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : unsigned int Id { get; }
public uint Id { get; }
Public ReadOnly Property Id As uint
var uint = userAuthenticationOperation.id;
Value
unsigned int uint uint uint

The operation's unique ID as defined in the package manifest.

Status Status Status Status

Gets the current status of the operation.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : AsyncStatus Status { get; }
public AsyncStatus Status { get; }
Public ReadOnly Property Status As AsyncStatus
var asyncStatus = userAuthenticationOperation.status;
Value
AsyncStatus AsyncStatus AsyncStatus AsyncStatus

One of the enumeration values that indicates the status.

Methods

Cancel() Cancel() Cancel() Cancel()

Requests the cancellation of the operation.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : void Cancel()
public void Cancel()
Public Function Cancel() As void
userAuthenticationOperation.cancel();

Close() Close() Close() Close()

Requests that work associated with the operation should terminate.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : void Close()
public void Close()
Public Function Close() As void
userAuthenticationOperation.close();

GetResults() GetResults() GetResults() GetResults()

Returns a UserIdentity object that contains information about the user.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : UserIdentity GetResults()
public UserIdentity GetResults()
Public Function GetResults() As UserIdentity
var userIdentity = userAuthenticationOperation.getResults();
Returns

An object containing information about the user's identity.