DacCompilationUnit 类

The DacCompilationUnit accepts Transact-SQL content and compiles it into a data-tier application (DAC) type. Any Transact-SQL file can be added or removed prior to compilation. 

继承层次结构

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

命名空间:  Microsoft.SqlServer.Management.Dac
程序集:  Microsoft.SqlServer.Management.Dac(在 Microsoft.SqlServer.Management.Dac.dll 中)

语法

声明
Public Class DacCompilationUnit
用法
Dim instance As DacCompilationUnit
public class DacCompilationUnit
public ref class DacCompilationUnit
type DacCompilationUnit =  class end
public class DacCompilationUnit

DacCompilationUnit 类型公开以下成员。

构造函数

  名称 说明
公共方法 DacCompilationUnit() () () () Initializes a new instance of the DacCompilationUnit class.
公共方法 DacCompilationUnit(String, Version, String) Initializes a new instance of the DacCompilationUnit class with the specified information.

页首

属性

  名称 说明
公共属性 DatabaseCollation Gets or sets the database collation used for the compile.
公共属性 Description Gets or sets the text description of the DAC type.
公共属性 MiscellaneousFiles A collection enumerating the miscellaneous files to include in the DAC type.
公共属性 TargetSelectionPolicy Gets or sets the server selection policy to compile into the DAC type.
公共属性 TypeName Gets or sets the name of the DAC type.
公共属性 Version Gets or sets the version of the DAC type.

页首

方法

  名称 说明
公共方法 AddTSqlSourceFile Adds a Transact-SQL script file to the compilation unit.
公共方法 Compile Compiles a DAC type based on the Transact-SQL scripts, server selection policy, and miscellaneous files specified for the DacCompilationUnit object.
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 RemoveTSqlSourceFile Removes a Transact-SQL script file from the compilation unit.
公共方法 ToString (从 Object 继承。)

页首

注释

Using the DacCompilationUnit object, you can:

  • Add and remove Transact-SQL command files.

  • Compile the DAC type with a given collation.

Thread Safety

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

线程安全

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