Checks if the given directory contains a valid repository.

Namespace:  Novalys.VisualGuard.Security.Deployment.Repository
Assembly:  vg_deployment (in vg_deployment.exe) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public bool IsValidRepository(
	bool throwOnError,
	bool useCache
)
Visual Basic (Declaration)
Public Function IsValidRepository ( _
	throwOnError As Boolean, _
	useCache As Boolean _
) As Boolean

Parameters

throwOnError
Type: System..::.Boolean
true if you want to generate an exception, false otherwise.
useCache
Type: System..::.Boolean
indicates whether the cahce must be used to check the repository.

Return Value

true if the deployment configuration file contains a valid repository, false otherwise.

Exceptions

ExceptionCondition
Novalys.VisualGuard.Security..::.VGRepositoryVersionNotSupportedExceptionThe repository is not compatible with the version of Visual Guard runtime
VGItemNotFoundExceptionthe deployment configuration file does not contain a repository.

See Also