Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LiveAuthClient class

Used to retrieve session data from a service using Microsoft account.

Note  The following members are supported in both Windows Store apps and Windows Phone apps unless otherwise noted.

Syntax


Public Class LiveAuthClient

Members

The LiveAuthClient class has these types of members:

Constructors

The LiveAuthClient class has these constructors.

ConstructorDescription
LiveAuthClient() Initializes a new instance of the LiveAuthClient class. [Windows Store app only]
LiveAuthClient(String) Initializes a new instance of the LiveAuthClient class with the specified redirect Uniform Resource Identifier (URI).

 

Events

The LiveAuthClient class has these events.

EventDescription
InitializeCompleted event Raised when an InitializeAsync operation is completed. [Windows Phone only]
LoginCompleted event Raised when a LoginAsync operation is completed. [Windows Phone only]
PropertyChanged event Raises an event when the Session property is changed.

 

Methods

The LiveAuthClient class has these methods. It also inherits methods from the Object class.

MethodDescription
InitializeAsync() Initializes a new LiveAuthClient.
InitializeAsync(IEnumerable<String>) Initializes a new LiveAuthClient with the given scopes.
InitializeAsync(IEnumerable<String>, Object) Initializes the Session object by loading it from cache, specifying a list of scopes and a user state. [Windows Phone only]
InitializeAsync(Object) Initiates the Microsoft account sign-in flow in silent mode. [Windows Phone only]
LoginAsync(IEnumerable<String>) Initiates the Microsoft account sign-in flow, or presents a Microsoft account consent page.
LoginAsync(IEnumerable<String>, Object) Initiates the Microsoft account sign-in flow, or presents a Microsoft account consent page. [Windows Phone only]
Logout() Signs the user out from services using Microsoft account.

 

Properties

The LiveAuthClient class has these properties.

PropertyAccess typeDescription

CanLogout property

Read-onlyGets whether the current user can be signed out of his or her Microsoft account. [Windows Store app only]

Session property

Read-onlyThe current session for the connected user.

Theme property

Read/writeDefines the appearance of the sign-in control. [Windows Store app only]

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Microsoft.Live

Assembly

Microsoft.Live.dll

 

 

Show:
© 2014 Microsoft