IdeaBlade DevForce 2010 Help Reference
Login Method
See Also  Send Feedback
IdeaBlade.EntityModel.Web Assembly > IdeaBlade.EntityModel.Web Namespace > AspAuthenticatingLoginManager Class : Login Method



credential
entityManager
Authenticate the user.

Syntax

Visual Basic (Declaration) 
Public Function Login( _
   ByVal credential As ILoginCredential, _
   ByVal entityManager As EntityManager _
) As IPrincipal
Visual Basic (Usage)Copy Code
Dim instance As AspAuthenticatingLoginManager
Dim credential As ILoginCredential
Dim entityManager As EntityManager
Dim value As IPrincipal
 
value = instance.Login(credential, entityManager)
C++/CLI 
public:
IPrincipal^ Login( 
   ILoginCredential^ credential,
   EntityManager^ entityManager
) 

Parameters

credential
entityManager

Remarks

If the credential parameter is null then a non-credential authentication will be attempted. If you are using Windows authentication you should pass a null credential to the EntityManager.Login(ILoginCredential). The HttpContext.Current.User information will be used to build a IdeaBlade.EntityModel.UserBase representing the current user.

To perform Forms authentication pass a credential, such as the IdeaBlade.EntityModel.FormsAuthenticationLoginCredential, to your login method on the EntityManager.

If the user fails authentication and anonymous logins are not supported a IdeaBlade.EntityModel.LoginException is thrown.

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.