Loads the permission of the given user name.
Namespace: Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)
Syntax
C# |
---|
public VGAuthorizationState LoadSecurity( string name, VGAuthenticationMode mode, bool isAuthenticated ) |
Visual Basic |
---|
Public Function LoadSecurity ( name As String, mode As VGAuthenticationMode, isAuthenticated As Boolean ) As VGAuthorizationState |
Parameters
- 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 the specified Visual Guard authentication mode. |
System..::..ArgumentNullException | name is null. |
System..::..ArgumentException | The name is longer than 64 characters - or -The name is empty. - or -The mode is equal to Windows. If you want to load the security for a Windows account, you have to call LoadSecurity(IIdentity) |
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. |