Install 方法 (DacType, DatabaseDeploymentProperties, Boolean)

使用指定的 DacType 对象在由 DacStore 对象表示的数据库引擎实例中创建 DAC 实例。

命名空间:  Microsoft.SqlServer.Management.Dac
程序集:  Microsoft.SqlServer.Management.Dac(在 Microsoft.SqlServer.Management.Dac.dll 中)

语法

声明
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

参数

  • skipPolicyValidation
    类型:System. . :: . .Boolean
    一个 Boolean 值,该值指定安装是否应评估 DAC 类型服务器选择策略。指定 true 将评估策略。指定 false 将忽略评估。只有在您确保数据库引擎实例可成功承载 DAC 的情况下,才指定 false。

返回值

类型:Microsoft.SqlServer.Management.Dac. . :: . .DacInstance
一个用于新创建的 DAC 实例的 DacInstance 对象。