VGSecurityManagerCheckContext Method
|
Check if the context of Visual Guard is valid.
Namespace:
Novalys.VisualGuard.Security
Assembly:
Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax public static bool CheckContext(
bool throwOnError
)
Public Shared Function CheckContext (
throwOnError As Boolean
) As Boolean
Parameters
- throwOnError
- Type: SystemBoolean
throw an error if the context is not valid
Return Value
Type:
Booleantrue if the Visual Guard context is valid, false otherwise.
Exceptions Exception | Condition |
---|
VGInvalidRepositoryException | This exception will be thrown if the application cannot access to the repository. |
VGConfigurationException | This exception will be thrown if Visual Guard configuration files are not available or if the parameters of these files are not valid. |
Remarks You can call this method if you want to check if the context of Visual Guard is valid for the application.
If you do not call this method, Visual Guard will check this information at the first call of the repository and will throw an exception at this time.
The method will check if Visual Guard configuration files are valid and if it is possible to access to the repository and if the application has enough permissions on this repository.
See Also