Freigeben über


DacExtractionUnit-Klasse

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

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Declaration
Public Class DacExtractionUnit
'Usage
Dim instance As DacExtractionUnit
public class DacExtractionUnit
public ref class DacExtractionUnit
type DacExtractionUnit =  class end
public class DacExtractionUnit

Der DacExtractionUnit-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode DacExtractionUnit(Server, String) Initializes a new instance of the DacExtractionUnit class that has the specified instance of the Database Engine (Datenbankmodul) and the specified database to be extracted.
Öffentliche Methode DacExtractionUnit(Server, String, String, Version) Initializes a new instance of the DacExtractionUnit class that has the specified instance of the Database Engine (Datenbankmodul) and the specified database to be extracted, along with the type name and version to be applied.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Description Gets or sets the description of the DAC package.
Öffentliche Eigenschaft ExtractionObjectsCount Gets the number of objects affected by the extraction.
Öffentliche Eigenschaft MiscellaneousFiles Gets or sets the collection of miscellaneous files associated with the DAC type.
Öffentliche Eigenschaft TargetSelectionPolicy Gets or sets the server selection policy placed in the DAC type.
Öffentliche Eigenschaft TypeName Gets or sets the name of the DAC type.
Öffentliche Eigenschaft Version Gets or sets the DAC type version.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode 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.
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode 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.
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche Methode ValidateDatabaseObjects Returns the result of validating the database that is being extracted to DAC.

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis DatabaseObjectValidated Indicates that the Database object has been validated.

Zum Anfang

Hinweise

Using the DacExtractionUnit class, you can:

  • Validate the database objects.

  • Extract objects into the DAC type.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.