IdeaBlade.EntityModel.Web Assembly > IdeaBlade.EntityModel.Web Namespace > AspAuthenticatingLoginManager Class : Login Method |
'Declaration
Public Function Login( _ ByVal credential As ILoginCredential, _ ByVal entityManager As EntityManager _ ) As IPrincipal
'Usage
Dim instance As AspAuthenticatingLoginManager Dim credential As ILoginCredential Dim entityManager As EntityManager Dim value As IPrincipal value = instance.Login(credential, entityManager)
public IPrincipal Login( ILoginCredential credential, EntityManager entityManager )
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2