| 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# | |
|---|---|
public IPrincipal Login( ILoginCredential credential, EntityManager entityManager ) | |
| C++/CLI | |
|---|---|
public: IPrincipal^ Login( ILoginCredential^ credential, EntityManager^ entityManager ) | |
Parameters
- credential
- entityManager
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.
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