DacType Constructor (IServer, String, Version, String, Policy, MiscellaneousFilesCollection)
Initializes a new instance of the DacType class with the specified definition, name, version, description, server selection policy, and set of miscellaneous files.
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)
Syntax
'Declaration
Public Sub New ( _
definition As IServer, _
name As String, _
version As Version, _
description As String, _
targetSelectionPolicy As Policy, _
miscellaneousFiles As MiscellaneousFilesCollection _
)
'Usage
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
)
Parameters
- definition
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IServer
A IServer object that specifies the definition of the DAC type.
- name
Type: System.String
A String value that specifies the name of the DAC type.
- version
Type: System.Version
A Version object that specifies the version of the DAC type.
- description
Type: System.String
A String value that lists the description for the DAC type.
- targetSelectionPolicy
Type: Microsoft.SqlServer.Management.Dmf.Policy
A Policy object containing the server selection policy that defines the conditions that must be met by the instance to which the DAC type is deployed.
- miscellaneousFiles
Type: Microsoft.SqlServer.Management.Dac.MiscellaneousFilesCollection
A MiscellaneousFilesCollection object that enumerates any miscellaneous files, such as pre or post deployment scripts, contained in the DAC type.