PackageClass 類別

定義

表示 Package 介面的類別。

public ref class PackageClass : Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSBreakpointSite100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSConfigurationControl100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSContainer100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSDumpConfiguration100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEventsProvider100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSExecutionMetrics100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSName100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPackageSigning100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPersist100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSProjectPackage100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPropertiesProvider100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSSequence100, Microsoft::SqlServer::Dts::Runtime::Wrapper::Package
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("6FB1D19E-B035-424C-B74D-EEE266E4D322")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class PackageClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConfigurationControl100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSDumpConfiguration100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackageSigning100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSProjectPackage100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100, Microsoft.SqlServer.Dts.Runtime.Wrapper.Package
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("7B49F131-7EA3-4109-9E30-4ACCC4A00E25")]
public class PackageClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConfigurationControl100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSDumpConfiguration100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackageSigning100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSProjectPackage100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100, Microsoft.SqlServer.Dts.Runtime.Wrapper.Package
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("6E8597AE-3486-4838-A8E0-F5C683618DF4")]
public class PackageClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConfigurationControl100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSDumpConfiguration100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackageSigning100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSProjectPackage100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100, Microsoft.SqlServer.Dts.Runtime.Wrapper.Package
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("6FB1D19E-B035-424C-B74D-EEE266E4D322")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type PackageClass = class
    interface Package
    interface IDTSPackage100
    interface IDTSPackageSigning100
    interface IDTSContainer100
    interface IDTSExecutable100
    interface IDTSEventsProvider100
    interface IDTSExecutionMetrics100
    interface IDTSSequence100
    interface IDTSPropertiesProvider100
    interface IDTSName100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
    interface IDTSDumpConfiguration100
    interface IDTSConfigurationControl100
    interface IDTSProjectPackage100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("7B49F131-7EA3-4109-9E30-4ACCC4A00E25")>]
type PackageClass = class
    interface Package
    interface IDTSPackage100
    interface IDTSPackageSigning100
    interface IDTSContainer100
    interface IDTSExecutable100
    interface IDTSEventsProvider100
    interface IDTSExecutionMetrics100
    interface IDTSSequence100
    interface IDTSPropertiesProvider100
    interface IDTSName100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
    interface IDTSDumpConfiguration100
    interface IDTSConfigurationControl100
    interface IDTSProjectPackage100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("6E8597AE-3486-4838-A8E0-F5C683618DF4")>]
type PackageClass = class
    interface Package
    interface IDTSPackage100
    interface IDTSPackageSigning100
    interface IDTSContainer100
    interface IDTSExecutable100
    interface IDTSEventsProvider100
    interface IDTSExecutionMetrics100
    interface IDTSSequence100
    interface IDTSPropertiesProvider100
    interface IDTSName100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
    interface IDTSDumpConfiguration100
    interface IDTSConfigurationControl100
    interface IDTSProjectPackage100
Public Class PackageClass
Implements IDTSBreakpointSite100, IDTSConfigurationControl100, IDTSContainer100, IDTSDumpConfiguration100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSName100, IDTSPackageSigning100, IDTSPersist100, IDTSProjectPackage100, IDTSPropertiesProvider100, IDTSRuntimeObject100, IDTSSequence100, Package
繼承
PackageClass
屬性
實作

備註

如需詳細資訊,請參閱Package

建構函式

PackageClass()

初始化 PackageClass 類別的新執行個體。

屬性

CertificateContext

取得或設定與封裝相關聯的憑證內容。

CertificateObject

取得或設定與封裝相關聯的憑證物件。

CheckpointFileName

取得或設定檔案名稱,這個檔案會擷取可讓封裝重新啟動的檢查點資訊。

CheckpointUsage

取得或設定值,這個值指定封裝是否會重新啟動或何時會重新啟動。

CheckSignatureOnLoad

取得或設定值,指出是否要在載入封裝時檢查數位簽章。

Configurations

取得封裝的組態集合。

Connections

取得封裝的連接管理員集合。

CreationDate

取得或設定建立封裝的日期和時間。

CreationName

取得用來建立 PackageClass 物件的名稱。

CreatorComputerName

取得或設定用來建立封裝的電腦名稱。

CreatorName

取得或設定建立封裝的人員名稱。

DebugMode

取得或設定值,指出封裝是否處於偵錯模式。

DelayValidation

取得或設定值,指出是否要延遲至封裝執行後才驗證封裝。

Description

取得或設定封裝的描述。

DesignEvents

取得或設定 IDTSEvents100,指出設計工具或其他協力廠商的用戶端是否會在設計階段期間接收事件。

DesignTimeProperties

取得或設定封裝的設計階段屬性,例如配置資訊。

Disable

取得或設定值,指出是否要停用 PackageClass 物件。

DisableEventHandlers

取得或設定值,指出是否已停用封裝上的事件處理常式。

DumpDescriptor

取得或設定封裝的傾印描述項。

DumpOnAnyError

取得或設定值,這個值表示是否應在封裝執行期間發生任何錯誤時產生傾印檔案。

EnableConfigurations

取得或設定值,這個值表示封裝是否會載入組態。

EnableDump

取得或設定值,這個值指出是否已啟用傾印檔案產生。

EncryptCheckpoints

取得或設定值,這個值表示是否加密檢查點。

Errors

取得與封裝相關聯的錯誤集合。

EventHandlers

取得事件處理常式物件的集合。

EventInfos

取得與封裝相關聯的 IDTSEventInfos100 集合。

Executables

取得包含在封裝中的可執行物件集合。

ExecutionDuration

取得封裝花在執行的時間長度 (以毫秒為單位)。

ExecutionResult

取得值,指出封裝執行成功或失敗。

ExecutionStatus

取得執行的目前狀態。

ExtendedProperties

取得封裝的 IDTSExtendedProperties100 集合。

FailPackageOnFailure

取得或設定值,這個值表示當封裝中的工作或元件失敗時,封裝是否會失敗。

FailParentOnFailure

取得或設定值,指出子封裝失敗時,父封裝是否也失敗。

ForcedExecutionValue

如果 ForceExecutionValue 屬性設定為 true,則取得或設定值,這個值會指定封裝所傳回的選擇性執行值。

ForceExecutionResult

取得或設定指定封裝強制執行結果的 DTSForcedExecResult 列舉值。

ForceExecutionValue

取得或設定值,指出封裝的執行值是否應該強制包含特定值。

ID

取得封裝的識別碼。

IDTSPackageSigning100_CertificateContext

取得或設定憑證內容。

IDTSPackageSigning100_CertificateObject

取得或設定憑證物件。

IDTSPackageSigning100_CheckSignatureOnLoad

取得或設定值,指出封裝是否在載入時檢查簽章。

IDTSSuspend100_SuspendRequired

取得或設定值,指出當工作遇到中斷點時是否應該暫停。

IgnoreConfigurationsOnLoad

取得或設定值,這個值表示封裝是否會在載入時忽略組態。

InteractiveMode

取得或設定值,這個值表示工作執行時是否應該顯示使用者介面物件。

IsDefaultLocaleID

取得值,指出封裝是否使用預設地區設定。

IsolationLevel

取得或設定封裝中的交易隔離等級。

LastModifiedProductVersion

取得上次修改之封裝的產品版本。

LocaleID

取得或設定封裝所使用之地區設定的識別碼。

LogEntryInfos

取得記錄項目定義的集合。

LoggingMode

取得或設定封裝的記錄模式。

LoggingOptions

取得封裝的篩選和記錄資源。

LogProviders

取得與封裝相關聯的記錄提供者集合。

MaxConcurrentExecutables

取得或設定封裝可以建立的執行緒數目。

MaximumErrorCount

取得或設定封裝停止執行之前,可以發生的錯誤數目上限。

Name

取得或設定 PackageClass 的名稱。

OfflineMode

取得或設定值,這個值表示封裝是否在離線模式工作。

PackageFormatVersion

取得封裝的格式版本。

PackageLocation

取得封裝的位置。

PackagePassword

設定封裝的密碼。

PackagePriorityClass

取得或設定封裝執行緒的 Win32 執行緒優先權等級。

PackageType

取得或設定值,這個值可識別建立封裝的工具。

PackageUpgradeOptions

取得或設定封裝的升級選項。

Parent

取得封裝的父系。

PrecedenceConstraints

取得封裝的優先順序條件約束集合。

Properties

取得封裝的屬性集合。

ProtectionLevel

取得或設定封裝的保護等級。

SafeRecursiveProjectPackageExecution

取得或設定值,該值指出遞迴執行封裝是否安全。

SaveCheckpoints

取得或設定值,這個值表示封裝在執行封裝期間是否使用檢查點。

SQLFolder

取得或設定封裝的 SQL 資料夾。

StartTime

取得封裝開始執行的時間。

StopTime

取得封裝停止執行的時間。

SuppressConfigurationWarnings

取得或設定值,這個值表示是否會隱藏組態所產生的警告。

SuspendRequired

取得或設定值,指出當工作遇到中斷點時是否應該暫停。

TransactionOption

取得或設定 DTSTransactionOption 列舉值,指出封裝是否參與交易。

UpdateObjects

取得或設定值,指出如果找到更新版本,是否會在封裝載入時間更新可延伸的物件。

UpdatePackage

取得或設定值,指出如果找到更新版本,是否可更新封裝。

VariableDispenser

取得封裝中變數的分配程式。

Variables

取得集合,其中包含與封裝相關聯的變數。

VersionBuild

取得或設定封裝的組建版本。

VersionComments

取得或設定與封裝相關的版本註解。

VersionGUID

取得第一次建立封裝時產生的版本 GUID。

VersionMajor

取得或設定封裝的主要組建版本。

VersionMinor

取得或設定封裝的次要組建版本。

Warnings

取得封裝上設定的警告集合。

方法

AcceptBreakpointManager(IDTSBreakpointManager100)

將中斷點管理員傳遞至封裝。

CheckSignature()

檢查封裝的數位簽章狀態。

ComputeExpressions(Boolean)

計算此 PackageClass 物件的運算式。

Execute()

傳回 DTSExecResult 列舉,其中包含有關封裝執行成功或失敗的資訊。

Execute(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100, Object)

將應用程式、容器或封裝當做封裝工作流程的一部分執行。

ExportConfigurationFile(String)

建立 XML 檔案,其中包含封裝中所有可部署的變數。

FindReferencedObjects(Object)

傳回參考物件列舉。

GetBreakpointTargets(IDTSBreakpointSite100, Boolean)

傳回 IDTSBreakpointTargets100 集合。 根據 onlyEnabled 參數設定,集合包含封裝中的所有中斷點目標,或僅包含已啟用的中斷點目標。

GetExpression(String)

傳回值,其中包含指定之屬性的運算式。

GetObjectFromPackagePath(String, IDTSProperty100)

從指定的封裝路徑傳回物件。

GetParentID()

擷取封裝的父識別碼。

GetPreExecutionPackageXML(Object)

擷取封裝 XML 的前置執行。

GetProject()

擷取 DTS 專案。

IDTSExecutable100_Execute(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100, Object)

執行可執行檔。

IDTSExecutable100_Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

透過在執行之前先驗證所有相依性和其他項目的方式,確認可執行檔將成功執行。

IDTSPackageSigning100_CheckSignature()

檢查封裝的簽章。

IDTSPackageSigning100_get_CertificateContext()
IDTSPackageSigning100_get_CertificateObject()
IDTSPackageSigning100_get_CheckSignatureOnLoad()
IDTSPackageSigning100_LoadUserCertificateByHash(Byte[])

使用雜湊載入使用者憑證。

IDTSPackageSigning100_LoadUserCertificateByName(String)

依名稱載入使用者憑證。

IDTSPackageSigning100_set_CertificateContext(Int64)
IDTSPackageSigning100_set_CertificateObject(Object)
IDTSPackageSigning100_set_CheckSignatureOnLoad(Boolean)
IDTSSuspend100_get_SuspendRequired()
IDTSSuspend100_ResumeExecution()

在暫停之後繼續執行工作。

IDTSSuspend100_set_SuspendRequired(Boolean)
IDTSSuspend100_SuspendExecution()

通知可執行檔必須暫停。

ImportConfigurationFile(String)

載入與封裝相關聯的組態檔。

LoadFromXML(Object, IDTSEvents100)

載入封裝及其所有以 XML 格式儲存至記憶體的物件。

LoadUserCertificateByHash(Byte[])

使用雜湊載入使用者憑證。

LoadUserCertificateByName(String)

依名稱載入使用者憑證。

PasswordMatch(String)

判斷指定的密碼是否與封裝密碼相符。

PermitUnencryptedSave(Boolean)

允許儲存未加密的資訊。

ProcessConfiguration(String, Object)

指定封裝及其物件的組態資訊。

RegenerateID()

建立封裝的新 GUID 及更新封裝識別碼屬性。

ResumeExecution()

在暫停之後繼續執行封裝。

SaveToXML(Object, Object, IDTSEvents100)

將封裝以 XML 格式儲存至記憶體。

SetExpression(String, String)

將指定的運算式指派至屬性。

SetProject(IDTSProject100, String)

設定指定的專案。

SuspendExecution()

可執行檔必須暫停時呼叫。 執行階段引擎會呼叫這個方法。

Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

可讓封裝判斷本身是否包含無效的設定,因而無法順利執行。

適用於