Click or drag to resize

VGSecurityRuntimeLoadSecurity Method (String, VGAuthenticationMode, Boolean)

Loads the permission of the given user name.

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(
	string name,
	VGAuthenticationMode mode,
	bool isAuthenticated
)

Parameters

name
Type: SystemString
the name of the user.
mode
Type: Novalys.VisualGuard.SecurityVGAuthenticationMode
the authentication mode used to authenticate the user.
isAuthenticated
Type: SystemBoolean
Indicates the given user has been authenticated.

Return Value

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

the repository does not support the specified Visual Guard authentication mode.

ArgumentNullException

name is null.

ArgumentException

The name is longer than 64 characters

- or -

The name is empty.

- or -

The mode is equal to Windows. If you want to load the security for a Windows account, you have to call LoadSecurity(IIdentity)

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.
See Also