Поделиться через


Класс DacExtractionUnit

The DacExtractionUnit class contains the information that must be extracted to a DAC type, such as server graphs and miscellaneous files.

Иерархия наследования

System. . :: . .Object
  Microsoft.SqlServer.Management.Dac..::..DacExtractionUnit

Пространство имен:  Microsoft.SqlServer.Management.Dac
Сборка:  Microsoft.SqlServer.Management.Dac (в Microsoft.SqlServer.Management.Dac.dll)

Синтаксис

'Декларация
Public Class DacExtractionUnit
'Применение
Dim instance As DacExtractionUnit
public class DacExtractionUnit
public ref class DacExtractionUnit
type DacExtractionUnit =  class end
public class DacExtractionUnit

Тип DacExtractionUnit обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод DacExtractionUnit(Server, String) Initializes a new instance of the DacExtractionUnit class that has the specified instance of the Database Engine and the specified database to be extracted.
Открытый метод DacExtractionUnit(Server, String, String, Version) Initializes a new instance of the DacExtractionUnit class that has the specified instance of the Database Engine and the specified database to be extracted, along with the type name and version to be applied.

В начало

Свойства

  Имя Описание
Открытое свойство Description Gets or sets the description of the DAC package.
Открытое свойство ExtractionObjectsCount Gets the number of objects affected by the extraction.
Открытое свойство MiscellaneousFiles Gets or sets the collection of miscellaneous files associated with the DAC type.
Открытое свойство TargetSelectionPolicy Gets or sets the server selection policy placed in the DAC type.
Открытое свойство TypeName Gets or sets the name of the DAC type.
Открытое свойство Version Gets or sets the DAC type version.

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Открытый метод Extract Extracts the object defintions from the database, compiles them into a DAC type in a DAC package, and then returns the result of the extraction.
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод Register Extracts the object definitions from the database, compiles them into a DAC type, registers the type in a DAC instance, and then returns the result of the registration.
Открытый метод ToString (Производный от Object.)
Открытый метод ValidateDatabaseObjects Returns the result of validating the database that is being extracted to DAC.

В начало

События

  Имя Описание
Открытое событие DatabaseObjectValidated Indicates that the Database object has been validated.

В начало

Замечания

Using the DacExtractionUnit class, you can:

  • Validate the database objects.

  • Extract objects into the DAC type.

Thread Safety

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.