Freigeben über


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

'Declaration
Public Shared Sub Unpack ( _
    dacType As DacType, _
    directoryPath As String _
)
'Usage
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

  • 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.

See Also

Reference

DacType Class

Microsoft.SqlServer.Management.Dac Namespace