MobileServiceClient.LoginAsync Method (MobileServiceAuthenticationProvider)
Log a user into a Mobile Services application given a provider name.
Namespace: Microsoft.WindowsAzure.MobileServices
Assembly: Microsoft.WindowsAzure.MobileServices.Managed (in Microsoft.WindowsAzure.MobileServices.Managed.dll)
Syntax
'Declaration
Public Function LoginAsync ( _
provider As MobileServiceAuthenticationProvider _
) As Task(Of MobileServiceUser)
'Usage
Dim instance As MobileServiceClient
Dim provider As MobileServiceAuthenticationProvider
Dim returnValue As Task(Of MobileServiceUser)
returnValue = instance.LoginAsync(provider)
public Task<MobileServiceUser> LoginAsync(
MobileServiceAuthenticationProvider provider
)
public:
Task<MobileServiceUser^>^ LoginAsync(
MobileServiceAuthenticationProvider provider
)
member LoginAsync :
provider:MobileServiceAuthenticationProvider -> Task<MobileServiceUser>
public function LoginAsync(
provider : MobileServiceAuthenticationProvider
) : Task<MobileServiceUser>
Parameters
- provider
Type: Microsoft.WindowsAzure.MobileServices.MobileServiceAuthenticationProvider
<param name="provider" type="MobileServiceAuthenticationProvider"> Authentication provider to use.
Return Value
Type: System.Threading.Tasks.Task<MobileServiceUser>
Task that will complete when the user has finished authentication.