Visual Guard Class Library Documentation

VGSecurityRuntime.LoadSecurity Method (String, VGAuthenticationMode)

Loads the permissions of a user identified by the user name by using the specified authentication mode.

public VGAuthorizationState LoadSecurity(
   String name,
   VGAuthenticationMode mode
);

Parameters

name
the name of the user.
mode
the authentication mode used to authentiticate the user.

Return Value

A VGAuthorizationState representing the state of the authorization

Exceptions

Exception Type Condition
NotSupportedException

the repository does not support specified authentication mode.

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