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. |
页首
注释
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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。