Partager via


DacExtractionUnit Class

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

Inheritance Hierarchy

Object
  Microsoft.SqlServer.Management.Dac.DacExtractionUnit

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

Syntax

'Déclaration
Public Class DacExtractionUnit
'Utilisation
Dim instance As DacExtractionUnit
public class DacExtractionUnit
public ref class DacExtractionUnit
type DacExtractionUnit =  class end
public class DacExtractionUnit

The DacExtractionUnit type exposes the following members.

Constructors

  Name Description
Public method 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.
Public method DacExtractionUnit(ServerConnection, String) Specifies a new instance of the DacExtractionUnit class with specified server connection and database name.
Public method 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.

Top

Properties

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

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method Extract(Stream) Extracts the object definitions from the database.
Public method Extract(String) 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.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method 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.
Public method ToString (Inherited from Object.)
Public method ValidateDatabaseObjects Returns the result of validating the database that is being extracted to DAC.

Top

Events

  Name Description
Public event DatabaseObjectValidated Indicates that the Database object has been validated.

Top

Remarks

Using the DacExtractionUnit class, you can:

  • Validate the database objects.

  • Extract objects into the DAC type.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Dac Namespace