Метод 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, указывающий тип приложения уровня данных для распаковки.
- directoryPath
Тип: System. . :: . .String
Значение типа String, указывающее путь к папке, в которую следует распаковать тип приложения уровня данных.
Замечания
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.