VGSecurityRuntimeCreateRuntimeForFile Method (String, VGAuthenticationMode, Boolean, Guid, String, Int32, Boolean)
|
Creates a new instance of the
VGSecurityRuntime class and initializes a connection to a repository based on files.
Namespace:
Novalys.VisualGuard.Security
Assembly:
Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2018.1.720.18 (2018.1.0720.18)
Syntax public static VGSecurityRuntime CreateRuntimeForFile(
string repositoryName,
VGAuthenticationMode supportedAuthenticationModes,
bool anonymousSessionSupported,
Guid applicationId,
string repositoryPath,
int cacheDuration,
bool includeWindowsGroups
)
Public Shared Function CreateRuntimeForFile (
repositoryName As String,
supportedAuthenticationModes As VGAuthenticationMode,
anonymousSessionSupported As Boolean,
applicationId As Guid,
repositoryPath As String,
cacheDuration As Integer,
includeWindowsGroups As Boolean
) As VGSecurityRuntime
Parameters
- repositoryName
- Type: SystemString
the name of the repository - supportedAuthenticationModes
- Type: Novalys.VisualGuard.SecurityVGAuthenticationMode
A VGAuthenticationMode indicating the authentication mode supported by the security runtime. This value must be equal or a subset of the value defined in the repository. - anonymousSessionSupported
- Type: SystemBoolean
A boolean value indicating whether the security runtime supports anonymous session. - applicationId
- Type: SystemGuid
The Visual Guard unique identifier of the application managed by the security runtime. - repositoryPath
- Type: SystemString
The path of the folder containing the repository files. - cacheDuration
- Type: SystemInt32
The length of time in seconds that Visual Guard caches a repository item before trying to reload them from the repository. - includeWindowsGroups
- Type: SystemBoolean
Indicates whether role granted to Windows Groups are included to the list of role of a user.
Return Value
Type:
VGSecurityRuntimeA new instance of the
VGSecurityRuntime class
Exceptions Remarks this method requires to deploy the assembly "Novalys.VisualGuard.Security.File.dll" with your application.
See Also