Класс 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
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.