Visual Guard Class Library Documentation

VGSecurityRuntime.LoadSecurity Method (String, VGAuthenticationMode, Boolean)

Loads the permission of the given user name.

public VGAuthorizationState LoadSecurity(
   String name,
   VGAuthenticationMode mode,
   Boolean isAuthenticated
);

Parameters

name
the name of the user.
mode
the authentication mode used to authenticate the user.
isAuthenticated
Indicates the given user has been authenticated.

Return Value

A VGAuthorizationState representing the state of the authorization

Exceptions

Exception Type Condition
NotSupportedException

the repository does not support Visual Guard authentication mode.

ArgumentNullException

name is null.

ArgumentException

The name is longer than 64 characters

The name is empty.

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.

See Also

VGSecurityRuntime Class | Novalys.VisualGuard.Security Namespace | VGSecurityRuntime.LoadSecurity Overload List