| Visual Basic (Declaration) | |
|---|---|
<ObsoleteAttribute("Will be removed after 9/1/2012. Use Authenticator.Instance.LoginAsync instead.")> Public Function LoginAsync( _ Optional ByVal credential As ILoginCredential, _ Optional ByVal userCallback As Action(Of LoginOperation), _ Optional ByVal userState As Object _ ) As LoginOperation | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As EntityManager Dim credential As ILoginCredential Dim userCallback As Action(Of LoginOperation) Dim userState As Object Dim value As LoginOperation value = instance.LoginAsync(credential, userCallback, userState) | |
| C# | |
|---|---|
[ObsoleteAttribute("Will be removed after 9/1/2012. Use Authenticator.Instance.LoginAsync instead.")] public LoginOperation LoginAsync( ILoginCredential credential, Action<LoginOperation> userCallback, object userState ) | |
| C++/CLI | |
|---|---|
[ObsoleteAttribute("Will be removed after 9/1/2012. Use Authenticator.Instance.LoginAsync instead.")] public: LoginOperation^ LoginAsync( ILoginCredential^ credential, Action<LoginOperation^>^ userCallback, Object^ userState ) | |
Parameters
- credential
- Login credentials
- userCallback
- Callback invoked when asynchronous operation completes
- userState
- Token identifying the asynchronous operation
| Exception | Description |
|---|---|
| System.InvalidOperationException | Call Connect before doing a Login. |
Login may be used to validate a user's credentials and provide more secure communications between client and server tiers. In a Silverlight application, you can integrate with ASP.NET authentication features when the UseAspNetSecurityServices option is enabled.
If EntityManagerOptions.UseDefaultAuthenticationContext is true, the LoginAsync call will set the IdeaBlade.EntityModel.Security.Authenticator.DefaultAuthenticationContext, otherwise the AuthenticationContext is set.
Credentials are passed in clear text. Use a secure channel (such as SSL) or provide your own encryption if secure communications are necessary.
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