Cocktail Help Reference
LoginAsync Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IAuthenticationService Interface : LoginAsync Method



credential

The supplied credential.

onSuccess
Callback called when login was successful.
onFail
Callback called when an error occurred during login.

Glossary Item Box

Login with the supplied credential.

Syntax

Visual Basic (Declaration) 
Function LoginAsync( _
   ByVal credential As IdeaBlade.EntityModel.ILoginCredential, _
   Optional ByVal onSuccess As Action, _
   Optional ByVal onFail As Action(Of Exception) _
) As OperationResult
Visual Basic (Usage)Copy Code
Dim instance As IAuthenticationService
Dim credential As IdeaBlade.EntityModel.ILoginCredential
Dim onSuccess As Action
Dim onFail As Action(Of Exception)
Dim value As OperationResult
 
value = instance.LoginAsync(credential, onSuccess, onFail)
C# 
OperationResult LoginAsync( 
   IdeaBlade.EntityModel.ILoginCredential credential,
   Action onSuccess,
   Action<Exception> onFail
)
C++/CLI 
OperationResult^ LoginAsync( 
   IdeaBlade.EntityModel.ILoginCredential^ credential,
   Action^ onSuccess,
   Action<Exception^>^ onFail
) 

Parameters

credential

The supplied credential.

onSuccess
Callback called when login was successful.
onFail
Callback called when an error occurred during login.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.