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 数据库引擎 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 数据库引擎 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

此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。不保证所有实例成员都是线程安全的。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。