Loads the permissions of a user identified by the user name by using the specified authentication mode.
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 ) |
Visual Basic |
---|
Public Function LoadSecurity ( name As String, mode As VGAuthenticationMode ) As VGAuthorizationState |
Parameters
- name
- Type: System..::..String
the name of the user.
- mode
- Type: Novalys.VisualGuard.Security..::..VGAuthenticationMode
the authentication mode used to authentiticate the user.
Return Value
Type: VGAuthorizationStateA VGAuthorizationState representing the state of the authorization
Exceptions
Exception | Condition |
---|---|
System..::..NotSupportedException | the repository does not support specified authentication mode. |
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. |