Click or drag to resize

VGSecurityRuntimeLoadSecurity Method

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public VGAuthorizationState LoadSecurity()

Return Value

Type: VGAuthorizationState
A VGAuthorizationState representing the state of the authorization
Exceptions
ExceptionCondition
NotSupportedException

the repository does not support Windows authentication mode.

VGConfigurationExceptionThe 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.
Remarks
If a user has more than one role in the application, you can use the PermissionsLoading event to allow the user to select a role in the granted roles list. By default, Visual Guard will create permission set that will be a union of all permission sets granted to the roles.
See Also