Cocktail Help Reference
LoginAsync Method
See Also  Send Feedback
Cocktail.Compat Assembly > Cocktail Namespace > Compatibility Class : LoginAsync Method



source
credential
onSuccess
onFail

Glossary Item Box

Provides compatibility for legacy code.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function LoginAsync( _
   ByVal source As IAuthenticationService, _
   ByVal credential As IdeaBlade.EntityModel.ILoginCredential, _
   ByVal onSuccess As Action, _
   ByVal onFail As Action(Of Exception) _
) As OperationResult
Visual Basic (Usage)Copy Code
Dim source As IAuthenticationService
Dim credential As IdeaBlade.EntityModel.ILoginCredential
Dim onSuccess As Action
Dim onFail As Action(Of Exception)
Dim value As OperationResult
 
value = Compatibility.LoginAsync(source, credential, onSuccess, onFail)
C# 
[ExtensionAttribute()]
public static OperationResult LoginAsync( 
   IAuthenticationService source,
   IdeaBlade.EntityModel.ILoginCredential credential,
   Action onSuccess,
   Action<Exception> onFail
)
C++/CLI 
[ExtensionAttribute()]
public:
static OperationResult^ LoginAsync( 
   IAuthenticationService^ source,
   IdeaBlade.EntityModel.ILoginCredential^ credential,
   Action^ onSuccess,
   Action<Exception^>^ onFail
) 

Parameters

source
credential
onSuccess
onFail

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

© 2013 All Rights Reserved.