Visual Guard Class Library Documentation

VGSecurityRuntime.CheckContext Method 

Check if the context of Visual Guard is valid.

public bool CheckContext(
   Boolean throwOnError
);

Parameters

throwOnError
throw an error if the context is not valid

Return Value

true if the Visual Guard context is valid, false otherwise.

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.

Exceptions

Exception Type 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.

See Also

VGSecurityRuntime Class | Novalys.VisualGuard.Security Namespace