Loads the permissions of a user for the specified HttpContext.
Namespace: Novalys.VisualGuard.Security.WebFormAssembly: Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 2017.0.101.17 (2017.0.101.17)
Syntax
C# |
---|
public VGAuthorizationState LoadSecurity( HttpContext context, string name, VGAuthenticationMode mode, bool isAuthenticated ) |
Visual Basic |
---|
Public Function LoadSecurity ( context As HttpContext, name As String, mode As VGAuthenticationMode, isAuthenticated As Boolean ) As VGAuthorizationState |
Parameters
- context
- Type: System.Web..::..HttpContext
A valid HttpContext representing the context for which the security is loaded.
- name
- Type: System..::..String
the name of the user.
- mode
- Type: Novalys.VisualGuard.Security..::..VGAuthenticationMode
the authentication mode used to authenticate the user.
- isAuthenticated
- Type: System..::..Boolean
Indicates the given user has been authenticated.
Return Value
Type: VGAuthorizationStateA VGAuthorizationState representing the state of the authorization
Exceptions
Exception | Condition |
---|---|
System..::..NotSupportedException | the repository does not support Visual Guard authentication mode. |
System..::..ArgumentNullException | name or context is null. |
System..::..ArgumentException | The name is longer than 64 characters The name is empty. |
Novalys.VisualGuard.Security..::..VGConfigurationException | The configuration file is not valid
or A problem occurs during the connection to the repository.or The version of the repository or the version of the permissions is not supported by the application. |