Share via


DacStore.Install Method (DacType, DatabaseDeploymentProperties, Boolean)

Uses the specified DacType object to create a DAC instance in the instance of the Database Engine represented by the DacStore object.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Declaration
Public Function Install ( _
    dacType As DacType, _
    deploymentProperties As DatabaseDeploymentProperties, _
    skipPolicyValidation As Boolean _
) As DacInstance
'Usage
Dim instance As DacStore
Dim dacType As DacType
Dim deploymentProperties As DatabaseDeploymentProperties
Dim skipPolicyValidation As Boolean
Dim returnValue As DacInstance

returnValue = instance.Install(dacType, _
    deploymentProperties, skipPolicyValidation)
public DacInstance Install(
    DacType dacType,
    DatabaseDeploymentProperties deploymentProperties,
    bool skipPolicyValidation
)
public:
DacInstance^ Install(
    DacType^ dacType, 
    DatabaseDeploymentProperties^ deploymentProperties, 
    bool skipPolicyValidation
)
member Install : 
        dacType:DacType * 
        deploymentProperties:DatabaseDeploymentProperties * 
        skipPolicyValidation:bool -> DacInstance 
public function Install(
    dacType : DacType, 
    deploymentProperties : DatabaseDeploymentProperties, 
    skipPolicyValidation : boolean
) : DacInstance

Parameters

  • skipPolicyValidation
    Type: System.Boolean
    A Boolean value that specifies whether the installation should evaluate the DAC type server selection policy. Specify true to evaluate the policy. Specify false to skip evaluation. Specify false only if you have ensured the instance of the Database Engine can successfully host the DAC.

Return Value

Type: Microsoft.SqlServer.Management.Dac.DacInstance
A DacInstance object for the newly created DAC instance.