Windows Dev Center

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.LoginAsync(IEnumerable<String>, Object) method

Initiates the Microsoft account sign-in flow, or presents a Microsoft account consent page. [Windows Phone only]

On Windows Phone, you can use LoginAsync as an alternative to the sign-in control, or to prompt the user for additional permissions in the context of an activity.

Note  Windows Store apps do not support this method.

Syntax


public LoginAsync(
  IEnumerable<String> scopes, 
  object userState
)

Parameters

scopes

Type: IEnumerable<String>

A list of scopes that are needed by the application.

userState

Type: System.Object

The current user state.

Remarks

Important  LoginAsync must be called from the app's UI thread.

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Microsoft.Live

Assembly

Microsoft.Live.dll

See also

LiveAuthClient
LoginAsync(IEnumerable<String>)

 

 

Show:
© 2015 Microsoft