DacType 建構函式 (IServer, String, Version, String, Policy, MiscellaneousFilesCollection)
使用指定的定義、名稱、版本、描述、伺服器選取原則及其他檔案集合,初始化 DacType 類別的新執行個體。
命名空間: Microsoft.SqlServer.Management.Dac
組件: Microsoft.SqlServer.Management.Dac (在 Microsoft.SqlServer.Management.Dac.dll 中)
語法
'宣告
Public Sub New ( _
definition As IServer, _
name As String, _
version As Version, _
description As String, _
targetSelectionPolicy As Policy, _
miscellaneousFiles As MiscellaneousFilesCollection _
)
'用途
Dim definition As IServer
Dim name As String
Dim version As Version
Dim description As String
Dim targetSelectionPolicy As Policy
Dim miscellaneousFiles As MiscellaneousFilesCollection
Dim instance As New DacType(definition, _
name, version, description, targetSelectionPolicy, _
miscellaneousFiles)
public DacType(
IServer definition,
string name,
Version version,
string description,
Policy targetSelectionPolicy,
MiscellaneousFilesCollection miscellaneousFiles
)
public:
DacType(
IServer^ definition,
String^ name,
Version^ version,
String^ description,
Policy^ targetSelectionPolicy,
MiscellaneousFilesCollection^ miscellaneousFiles
)
new :
definition:IServer *
name:string *
version:Version *
description:string *
targetSelectionPolicy:Policy *
miscellaneousFiles:MiscellaneousFilesCollection -> DacType
public function DacType(
definition : IServer,
name : String,
version : Version,
description : String,
targetSelectionPolicy : Policy,
miscellaneousFiles : MiscellaneousFilesCollection
)
參數
- definition
型別:Microsoft.SqlServer.Management.SqlParser.Metadata. . :: . .IServer
指定 DAC 類型定義的 IServer 物件。
- name
型別:System. . :: . .String
指定 DAC 類型名稱的 String 值。
- version
型別:System. . :: . .Version
指定 DAC 類型版本的 Version 物件。
- description
型別:System. . :: . .String
列出 DAC 類型描述的 String 值。
- targetSelectionPolicy
型別:Microsoft.SqlServer.Management.Dmf. . :: . .Policy
Policy 物件,包含定義 DAC 類型部署目標執行個體所必須符合之條件的伺服器選取原則。
- miscellaneousFiles
型別:Microsoft.SqlServer.Management.Dac. . :: . .MiscellaneousFilesCollection
MiscellaneousFilesCollection 物件,列舉 DAC 類型中包含的任何其他檔案,例如部署前或部署後指令碼。