Initializes a new instance of VGDeployApplicationAction class.

Namespace: Novalys.VisualGuard.Security.Deployment.Actions
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public VGDeployApplicationAction(
	VGApplicationOverwriteOptions overwrite,
	Guid appRepositoryId,
	bool grantRolesLikePreviousVersion,
	VGApplicationDeploymentMode deploymentMode
)
Visual Basic
Public Sub New ( 
	overwrite As VGApplicationOverwriteOptions,
	appRepositoryId As Guid,
	grantRolesLikePreviousVersion As Boolean,
	deploymentMode As VGApplicationDeploymentMode
)

Parameters

overwrite
Type: VGApplicationOverwriteOptions
A VGRepositoryOverwriteOptions value specifying whether an existing repository can be overwritten.
appRepositoryId
Type: System..::..Guid
The repository id of the application to deploy.
grantRolesLikePreviousVersion
Type: System..::..Boolean
A boolean value indicating whether the roles of deployed application must be granted like the roles of previous version of this application.
deploymentMode
Type: VGApplicationDeploymentMode
A boolean value indicating whether all existing roles of the target repository must be kept. true if you want to keep the roles that exists in the target repository but not exists in the deployed repository, false if you want to delete all existing roles and replace them by the roles of the deployed repository.

Exceptions

ExceptionCondition
[!:ArgumentExcepton]appRepositoryId is an empty Guid.

See Also