共用方式為


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 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。