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
一个 DacType 对象,该对象指定要解包的 DAC 类型。
- 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.