Unpack 方法
將 DAC 類型解壓縮到指定的資料夾。
命名空間: Microsoft.SqlServer.Management.Dac
組件: Microsoft.SqlServer.Management.Dac (在 Microsoft.SqlServer.Management.Dac.dll 中)
語法
'宣告
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
)
參數
- dacType
型別:Microsoft.SqlServer.Management.Dac. . :: . .DacType
指定要解除封裝之 DAC 類型的 DacType 物件。
- directoryPath
型別:System. . :: . .String
String 值,指定要解除封裝 DAC 類型的資料夾路徑。
備註
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.