DacType.Unpack Method
Unpacks a DAC type into the specified folder.
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)
Syntax
'宣告
Public Shared Sub Unpack ( _
dacType As DacType, _
directoryPath As String _
)
'用途
Dim dacType As DacType
Dim directoryPath As String
DacType.Unpack(dacType, directoryPath)
public static void Unpack(
DacType dacType,
string directoryPath
)
public:
static void Unpack(
DacType^ dacType,
String^ directoryPath
)
static member Unpack :
dacType:DacType *
directoryPath:string -> unit
public static function Unpack(
dacType : DacType,
directoryPath : String
)
Parameters
- dacType
Type: Microsoft.SqlServer.Management.Dac.DacType
A DacType object specifying the DAC type to unpack.
- directoryPath
Type: String
A String value specifying the path of the folder in which to unpack the DAC type.
Remarks
The contents of the DAC type are unpacked into the specified folder. The items placed in the folder include Transact-SQL scripts specifying the objects defined in the file, and miscellaneous files such as pre- and post-deployment scripts and the .sqlpolicy file for the server selection policy.