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

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public VGAuthorizationState LoadSecurity(
	string name,
	VGAuthenticationMode mode
)
Visual Basic
Public Function LoadSecurity ( 
	name As String,
	mode As VGAuthenticationMode
) As VGAuthorizationState

Parameters

name
Type: System..::..String
the name of the user.
mode
Type: Novalys.VisualGuard.Security..::..VGAuthenticationMode
the authentication mode used to authentiticate the user.

Return Value

Type: VGAuthorizationState
A VGAuthorizationState representing the state of the authorization

Exceptions

ExceptionCondition
System..::..NotSupportedException

the repository does not support specified authentication mode.

Novalys.VisualGuard.Security..::..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