Creates a new instance of VGRepositoryDeploymentOptions based on option stired in the specified configuration file.
Namespace:
Novalys.VisualGuard.Security.DeploymentAssembly: vg_deployment (in vg_deployment.exe) Version: 3.2.912.1 (3.2.912.01)
Syntax
| C# |
|---|
public VGRepositoryDeploymentOptions( string configFilename, VGRepositoryType repositoryType, string connectionString, string schemaName ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ configFilename As String, _ repositoryType As VGRepositoryType, _ connectionString As String, _ schemaName As String _ ) |
Parameters
- configFilename
- Type: System..::.String
the path of the deployment configuration file.
- repositoryType
- Type: Novalys.VisualGuard.Security.Deployment..::.VGRepositoryType
A VGRepositoryType value indicating the type of the target repository.
- connectionString
- Type: System..::.String
The connection string to the database where the reposiotory will be deployed.
- schemaName
- Type: System..::.String
The name of the database schema containing Visual Guard tables. This argument is necessary only for Oracle repository type. In other case the value is ignored. When the value is null or an empty string, Visual Guard will use the database account specified in the connection as schema name. This value is case sensitive.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentException | configFilename is empty or the specified file does not exist.
- or - connectionStringthe connection string is an empty string. |
| System..::.ArgumentNullException | configFilename or connectionString is null (Nothing in VB.Net). |
| System.Configuration..::.ConfigurationErrorsException | the file specified in configFilename()()() could not be loaded. |