Share via


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
)
Public Function LoginAsync(
  scopes As IEnumerable<String>,  
  userState As Object 
)

Parameters

scopes

userState

Remarks

Note

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>)