다음을 통해 공유


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

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.