共用方式為


DacStore.Install Method (DacType, DatabaseDeploymentProperties, )

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

'宣告
Public Function Install ( _
    dacType As DacType, _
    deploymentProperties As DatabaseDeploymentProperties, _
    skipPolicyValidation As Boolean _
) As DacInstance
'用途
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: 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 newly installed DAC instance.

See Also

Reference

DacStore Class

Install Overload

Microsoft.SqlServer.Management.Dac Namespace