DacPackage 클래스

Representation of the artifact that contains the definition of a data-tier application.

상속 계층

System.Object
  Microsoft.SqlServer.Dac.DacPackage

네임스페이스:  Microsoft.SqlServer.Dac
어셈블리:  Microsoft.SqlServer.Dac(Microsoft.SqlServer.Dac.dll)

구문

‘선언
Public NotInheritable Class DacPackage _
    Implements IDisposable
‘사용 방법
Dim instance As DacPackage
public sealed class DacPackage : IDisposable
public ref class DacPackage sealed : IDisposable
[<SealedAttribute>]
type DacPackage =  
    class 
        interface IDisposable 
    end
public final class DacPackage implements IDisposable

DacPackage 유형에서 다음 멤버를 표시합니다.

속성

  이름 설명
공용 속성 Description Get an optional summary of this package.
공용 속성 Name Get identifier for this package.
공용 속성 PostDeploymentScript Get stream used to read and write script executed after deploying schema contained in this package.
공용 속성 PreDeploymentScript Get stream used to read and write script executed prior to deploying schema contained in this package.
공용 속성 Version Get version information for this package.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Dispose Release the resources held by this instance.
공용 메서드 Equals (Object에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
공용 메서드정적 멤버 Load(Stream) Load a package from the specified Stream.
공용 메서드정적 멤버 Load(String) Load a package file specified by fileName.
공용 메서드정적 멤버 Load(Stream, DacSchemaModelStorageType) Loads a package from the specified Stream.
공용 메서드정적 멤버 Load(String, DacSchemaModelStorageType) Loada a package file specified by fileName.
공용 메서드정적 멤버 Load(Stream, DacSchemaModelStorageType, FileAccess) Load a package from the specified Stream.
공용 메서드정적 멤버 Load(String, DacSchemaModelStorageType, FileAccess) Load a package file specified by fileName.
공용 메서드 ToString (Object에서 상속됨)
공용 메서드 Unpack Place the contents of this package into the directory specified by directoryPath.

맨 위로 이동

확장 메서드

  이름 설명
공용 확장 메서드 GetCollationString Gets the collation associated with the specified package. (DacExtensions에 의해 정의됨)
공용 확장 메서드 UpdateModel 현재 모델을 새 모델로 교체하여 DacPackage의 모델을 업데이트합니다.업데이트하기 전에 모델의 유효성이 검사되며 오류가 발생하는 경우 DacServicesException이 throw됩니다.호출자가 경고와 오류를 차단하려는 경우 Validate()를 호출하고 반환되는 메시지에 오류 또는 경고가 포함되어 있는지 확인하여 모델의 유효성을 검사해야 합니다.참고: 모델만 교체됩니다. 리팩터링 로그, 배포 전 스크립트, 배포 후 스크립트 및 참가자 아티팩트와 같은 다른 모든 아티팩트는 변경되지 않습니다.이러한 아티팩트가 업데이트된 모델에 더 이상 존재하지 않는 요소를 사용하는 경우 배포가 실패할 수 있습니다.호출자는 이러한 아티팩트가 새 모델과 일치하도록 해야 합니다.Package API를 사용하여 리팩터링 로그 및 스크립트와 같은 다른 아티팩트를 업데이트하고 이러한 아티팩트를 업데이트된 모델과 일치하도록 유지할 수 있습니다.이러한 아티팩트는 패키지 파트로 저장되며 해당 URI로 식별됩니다.패키지 파트는 GetParts()를 사용하여 검사할 수 있습니다.패키지 파트 업데이트에 대한 자세한 내용은Package API를 참조하십시오. (DacPackageExtensions에 의해 정의됨)

맨 위로 이동

스레드 보안

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

참고 항목

참조

Microsoft.SqlServer.Dac 네임스페이스