Share via


Microsoft.Live.LiveAuthClient class

Used to retrieve session data from OneDrive.

Note

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

Syntax

public class LiveAuthClient
Public Class LiveAuthClient

Members

The LiveAuthClient class has these types of members:

Constructors

The LiveAuthClient class has these constructors.

Constructor

Description

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.

Event

Description

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.

Method

Description

InitializeAsync()

Initializes a new LiveAuthClient class.

InitializeAsync(IEnumerable<String>)

Initializes a new LiveAuthClient class 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.

Property

Access type

Description

CanLogout property

Read-only

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

Session property

Read-only

The current session for the connected user.

Theme property

Read/write

Defines the appearance of the sign-in control. [Windows Store app only]

Requirements

Minimum supported client

Windows8 [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