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 表示略過評估。只有在您確定 Database Engine 執行個體可以成功主控 DAC 時,才指定 false。
傳回值
型別:Microsoft.SqlServer.Management.Dac. . :: . .DacInstance
新建立 DAC 執行個體的 DacInstance 物件。