Condividi tramite


Classe DacExtractionUnit

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Sintassi

'Dichiarazione
Public Class DacExtractionUnit
'Utilizzo
Dim instance As DacExtractionUnit
public class DacExtractionUnit
public ref class DacExtractionUnit
type DacExtractionUnit =  class end
public class DacExtractionUnit

Nel tipo DacExtractionUnit sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico DacExtractionUnit(Server, String) Initializes a new instance of the DacExtractionUnit class that has the specified instance of the Motore di database and the specified database to be extracted.
Metodo pubblico DacExtractionUnit(Server, String, String, Version) Initializes a new instance of the DacExtractionUnit class that has the specified instance of the Motore di database and the specified database to be extracted, along with the type name and version to be applied.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Description Gets or sets the description of the DAC package.
Proprietà pubblica ExtractionObjectsCount Gets the number of objects affected by the extraction.
Proprietà pubblica MiscellaneousFiles Gets or sets the collection of miscellaneous files associated with the DAC type.
Proprietà pubblica TargetSelectionPolicy Gets or sets the server selection policy placed in the DAC type.
Proprietà pubblica TypeName Gets or sets the name of the DAC type.
Proprietà pubblica Version Gets or sets the DAC type version.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico 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.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico 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.
Metodo pubblico ToString Ereditato da Object.
Metodo pubblico ValidateDatabaseObjects Returns the result of validating the database that is being extracted to DAC.

In alto

Eventi

  Nome Descrizione
Evento pubblico DatabaseObjectValidated Indicates that the Database object has been validated.

In alto

Osservazioni

Using the DacExtractionUnit class, you can:

  • Validate the database objects.

  • Extract objects into the DAC type.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.