Install 方法 (DacType, DatabaseDeploymentProperties, Boolean)
命名空间: 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
参数
- dacType
类型:Microsoft.SqlServer.Management.Dac. . :: . .DacType
一个 DacType 对象,该对象指定要在 DAC 实例中创建的 DAC 元素。
- deploymentProperties
类型:Microsoft.SqlServer.Management.Dac. . :: . .DatabaseDeploymentProperties
一个 DatabaseDeploymentProperties 对象,该对象指定要为承载 DAC 数据库对象创建的数据库设置的属性,例如名称和数据文件。
- skipPolicyValidation
类型:System. . :: . .Boolean
一个 Boolean 值,该值指定安装是否应评估 DAC 类型服务器选择策略。指定 true 将评估策略。指定 false 将忽略评估。只有在您确保数据库引擎实例可成功承载 DAC 的情况下,才指定 false。
返回值
类型:Microsoft.SqlServer.Management.Dac. . :: . .DacInstance
一个用于新创建的 DAC 实例的 DacInstance 对象。