Loads the permissions of the given IIdentity object.Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)
public static VGAuthorizationState LoadSecurity( IIdentity identity )
|Visual Basic (Declaration)|
Public Shared Function LoadSecurity ( _ identity As IIdentity _ ) As VGAuthorizationState
Return ValueA VGAuthorizationState representing the state of the authorization
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 permision sets granted to the roles.
|System..::.NotSupportedException||The identity is WindowsIdentity and the repository does not support Windows authentication Mode.|
|Novalys.VisualGuard.Security..::.VGConfigurationException||The configuration file is not valid
orA problem occurs during the connection to the repository.
orThe version of the repository or the version of the permissions is not supported by the application.