共用方式為


PackageClass 類別

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Represents a class for the Package interface.

繼承階層

System.Object
  Microsoft.SqlServer.Dts.Runtime.Wrapper.PackageClass

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<GuidAttribute("4555B0A5-E8D7-49BD-B299-3140C34D3769")> _
Public Class PackageClass _
    Implements Package, IDTSPackage100, IDTSPackageSigning100, IDTSContainer100,  _
    IDTSExecutable100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSSequence100, IDTSPropertiesProvider100,  _
    IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100,  _
    IDTSDumpConfiguration100, IDTSConfigurationControl100, IDTSProjectPackage100
'用途
Dim instance As PackageClass
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[GuidAttribute("4555B0A5-E8D7-49BD-B299-3140C34D3769")]
public class PackageClass : Package, 
    IDTSPackage100, IDTSPackageSigning100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100, 
    IDTSExecutionMetrics100, IDTSSequence100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, 
    IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100, IDTSDumpConfiguration100, IDTSConfigurationControl100, 
    IDTSProjectPackage100
[ClassInterfaceAttribute(ClassInterfaceType::None)]
[GuidAttribute(L"4555B0A5-E8D7-49BD-B299-3140C34D3769")]
public ref class PackageClass : Package, 
    IDTSPackage100, IDTSPackageSigning100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100, 
    IDTSExecutionMetrics100, IDTSSequence100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, 
    IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100, IDTSDumpConfiguration100, IDTSConfigurationControl100, 
    IDTSProjectPackage100
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
[<GuidAttribute("4555B0A5-E8D7-49BD-B299-3140C34D3769")>]
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 
    end
public class PackageClass implements Package, IDTSPackage100, IDTSPackageSigning100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSSequence100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100, IDTSDumpConfiguration100, IDTSConfigurationControl100, IDTSProjectPackage100

PackageClass 型別公開下列成員。

建構函式

  名稱 說明
公用方法 PackageClass 基礎結構。Initializes a new instance of the PackageClass class.

上層

屬性

  名稱 說明
公用屬性 CertificateContext 基礎結構。Gets or sets the context of the certificate associated with the package.
公用屬性 CertificateObject 基礎結構。Gets or sets the certificate object associated with the package.
公用屬性 CheckpointFileName 基礎結構。Gets or sets the name of the file that captures the checkpoint information, which enables a package to restart.
公用屬性 CheckpointUsage 基礎結構。Gets or sets a value that specifies if or when a package is restarted.
公用屬性 CheckSignatureOnLoad 基礎結構。Gets or sets a value that indicates whether the digital signature is checked when a package is loaded.
公用屬性 Configurations 基礎結構。Gets the collection of configurations for the package.
公用屬性 Connections 基礎結構。Gets the collection of connection managers for the package.
公用屬性 CreationDate 基礎結構。Gets or sets the date and time that the package was created.
公用屬性 CreationName 基礎結構。Gets the name used to create the PackageClass object.
公用屬性 CreatorComputerName 基礎結構。Gets or sets the name of the computer on which the package was created.
公用屬性 CreatorName 基礎結構。Gets or sets the name of the individual who created the package.
公用屬性 DebugMode 基礎結構。Gets or sets a value that indicates whether the package is in debug mode.
公用屬性 DelayValidation 基礎結構。Gets or sets a value that indicates whether package validation is delayed until the package runs.
公用屬性 Description 基礎結構。Gets or sets the description of the package.
公用屬性 DesignEvents 基礎結構。Gets or sets an IDTSEvents100 that indicates if the designer or other third party client is to receive events during design time.
公用屬性 DesignTimeProperties 基礎結構。Gets or sets the design time properties of a package such as layout information.
公用屬性 Disable 基礎結構。Gets or sets a value that indicates whether the PackageClass object is disabled.
公用屬性 DisableEventHandlers 基礎結構。Gets or sets a value that indicates whether the event handlers on the package are disabled.
公用屬性 DumpDescriptor 基礎結構。Gets or sets the dump descriptor for the package.
公用屬性 DumpOnAnyError 基礎結構。Gets or sets a value that indicates whether a dump file should be generated when any error occurs during package execution.
公用屬性 EnableConfigurations 基礎結構。Gets or sets a value that indicates whether the package loads configurations.
公用屬性 EnableDump 基礎結構。Gets or sets a value that indicates whether the dump file generation is enabled.
公用屬性 EncryptCheckpoints 基礎結構。Gets or sets a value that indicates whether the checkpoint files are encrypted.
公用屬性 Errors 基礎結構。Gets the collection of errors associated with the package.
公用屬性 EventHandlers 基礎結構。Gets a collection of event handler objects.
公用屬性 EventInfos 基礎結構。Gets the IDTSEventInfos100 collection that is associated with the package.
公用屬性 Executables 基礎結構。Gets the collection of executable objects contained within the package.
公用屬性 ExecutionDuration 基礎結構。Gets the amount of time that the package spent in execution, in milliseconds.
公用屬性 ExecutionResult 基礎結構。Gets a value that indicates the success or failure of the execution of the package.
公用屬性 ExecutionStatus 基礎結構。Gets the current status of the execution.
公用屬性 ExtendedProperties 基礎結構。Gets the IDTSExtendedProperties100 collection for the package.
公用屬性 FailPackageOnFailure 基礎結構。Gets or sets a value that indicates whether the package fails when a task or component in the package fails.
公用屬性 FailParentOnFailure 基礎結構。Gets or sets a value that indicates whether the parent package fails when a child package fails.
公用屬性 ForcedExecutionValue 基礎結構。If the ForceExecutionValue property is set to true, gets or sets a value that specifies the optional execution value that the package returns.
公用屬性 ForceExecutionResult 基礎結構。Gets or sets a DTSForcedExecResult enumeration value that specifies the forced execution result of the package.
公用屬性 ForceExecutionValue 基礎結構。Gets or sets a value that indicates whether the execution value of the package should be forced to contain a particular value.
公用屬性 ID 基礎結構。Gets the ID of the package.
公用屬性 IDTSPackageSigning100_CertificateContext 基礎結構。Gets or sets the certificate context.
公用屬性 IDTSPackageSigning100_CertificateObject 基礎結構。Gets or sets the certificate object.
公用屬性 IDTSPackageSigning100_CheckSignatureOnLoad 基礎結構。Gets or sets a value that indicates whether the package checks the signature on loading.
公用屬性 IDTSSuspend100_SuspendRequired 基礎結構。Gets or sets a value that indicates whether the task should suspend when they encounter a breakpoint.
公用屬性 IgnoreConfigurationsOnLoad 基礎結構。Gets or sets a value that indicates whether the package ignores configurations when the package is loaded.
公用屬性 InteractiveMode 基礎結構。Gets or sets a value that indicates whether the tasks should show user interface objects while executing.
公用屬性 IsDefaultLocaleID 基礎結構。Gets a value that indicates whether the package uses the default locale.
公用屬性 IsolationLevel 基礎結構。Gets or sets the isolation level of the transaction in the package.
公用屬性 LastModifiedProductVersion 基礎結構。Gets the product version of the last modified package.
公用屬性 LocaleID 基礎結構。Gets or sets the identifier of the locale used by a package.
公用屬性 LogEntryInfos 基礎結構。Gets a collection of log entry definitions.
公用屬性 LoggingMode 基礎結構。Gets or sets the logging mode of the package.
公用屬性 LoggingOptions 基礎結構。Gets the filtering and logging resource for the package.
公用屬性 LogProviders 基礎結構。Gets the collection of log providers associated with the package.
公用屬性 MaxConcurrentExecutables 基礎結構。Gets or sets the number of threads that a package can create.
公用屬性 MaximumErrorCount 基礎結構。Gets or sets the maximum number of errors that can occur before the package stops running.
公用屬性 Name 基礎結構。Gets or sets the name of the PackageClass.
公用屬性 OfflineMode 基礎結構。Gets or sets a value that indicates whether the package is working in offline mode.
公用屬性 PackageFormatVersion 基礎結構。Gets the format version of the package.
公用屬性 PackageLocation 基礎結構。Gets the location of the package.
公用屬性 PackagePassword 基礎結構。Sets the password for the package.
公用屬性 PackagePriorityClass 基礎結構。Gets or sets the Win32 thread priority class of the package thread.
公用屬性 PackageType 基礎結構。Gets or sets a value that identifies the tool that created the package.
公用屬性 PackageUpgradeOptions 基礎結構。Gets or sets the upgrade options for the package.
公用屬性 Parent 基礎結構。Gets the parent of the package.
公用屬性 PrecedenceConstraints 基礎結構。Gets a collection of precedence constraints for the package.
公用屬性 Properties 基礎結構。Gets a collection of properties for the package.
公用屬性 ProtectionLevel 基礎結構。Gets or sets the level of protection on the package.
公用屬性 SafeRecursiveProjectPackageExecution 基礎結構。Gets or sets a value that indicates whether recursive execution of the package is safe.
公用屬性 SaveCheckpoints 基礎結構。Gets or sets a value that indicates whether the package will use checkpoints during package execution.
公用屬性 SQLFolder 基礎結構。Gets or sets the SQL folder for the package.
公用屬性 StartTime 基礎結構。Gets the time when the package starts execution.
公用屬性 StopTime 基礎結構。Gets the time when the package stops execution.
公用屬性 SuppressConfigurationWarnings 基礎結構。Gets or sets a value that indicates whether the warnings generated by configurations are suppressed.
公用屬性 SuspendRequired 基礎結構。Gets or sets a value that indicates whether the tasks should suspend when they encounter a breakpoint.
公用屬性 TransactionOption 基礎結構。Gets or sets a DTSTransactionOption enumeration value that indicates whether the package participates in transaction.
公用屬性 UpdateObjects 基礎結構。Gets or sets a value that indicates whether the extensible objects can be updated at package load time if an updated version is found.
公用屬性 UpdatePackage 基礎結構。Gets or sets a value that indicates whether the packages can be updated when an updated version is found.
公用屬性 VariableDispenser 基礎結構。Gets the dispenser of the variables in the package.
公用屬性 Variables 基礎結構。Gets a collection that contains the variables associated with the package.
公用屬性 VersionBuild 基礎結構。Gets or sets the build version of the package.
公用屬性 VersionComments 基礎結構。Gets or sets the version comments associated with the package.
公用屬性 VersionGUID 基礎結構。Gets the version GUID generated when the package is first created.
公用屬性 VersionMajor 基礎結構。Gets or sets the major build version of the package.
公用屬性 VersionMinor 基礎結構。Gets or sets the minor build version of the package.
公用屬性 Warnings 基礎結構。Gets the collection of warnings set on the package.

上層

方法

  名稱 說明
公用方法 AcceptBreakpointManager 基礎結構。Passes a breakpoint manager to a package.
公用方法 CheckSignature 基礎結構。Checks the status of the digital signature of the package.
公用方法 ComputeExpressions 基礎結構。Computes the expression of this PackageClass object.
公用方法 Equals (繼承自 Object。)
公用方法 Execute() 基礎結構。Returns a DTSExecResult enumeration that contains information about the success or failure of the package execution.
公用方法 Execute(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100, Object) 基礎結構。Runs the application, container, or package as part of a package workflow.
公用方法 ExportConfigurationFile 基礎結構。Creates an XML file that contains all deployable variables in the package.
受保護的方法 Finalize (繼承自 Object。)
公用方法 FindReferencedObjects 基礎結構。Returns a reference object enumeration.
公用方法 GetBreakpointTargets 基礎結構。Returns an IDTSBreakpointTargets100 collection. Depending on the setting of the onlyEnabled parameter, the collection contains all breakpoint targets in the package, or only enabled breakpoint targets.
公用方法 GetExpression 基礎結構。Returns a value that contains the expression for the specified property.
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetObjectFromPackagePath 基礎結構。Returns an object from the specified package path.
公用方法 GetParentID 基礎結構。Retrieves the parent identifier of the package.
公用方法 GetPreExecutionPackageXML 基礎結構。Retrieves the pre-execution of a package XML.
公用方法 GetProject 基礎結構。Retrieves the DTS project.
公用方法 GetType (繼承自 Object。)
公用方法 IDTSExecutable100_Execute 基礎結構。Executes the executable.
公用方法 IDTSExecutable100_Validate 基礎結構。Verifies that the executable will successfully execute by validating all its dependencies and other items before executing it.
公用方法 IDTSPackageSigning100_CheckSignature 基礎結構。Checks the signature of the package.
公用方法 IDTSPackageSigning100_LoadUserCertificateByHash 基礎結構。Loads the user certificate using hash.
公用方法 IDTSPackageSigning100_LoadUserCertificateByName 基礎結構。Loads the user certificate by name.
公用方法 IDTSSuspend100_ResumeExecution 基礎結構。Resumes the execution of the task after pausing.
公用方法 IDTSSuspend100_SuspendExecution 基礎結構。Notifies that the executable needs to suspend.
公用方法 ImportConfigurationFile 基礎結構。Loads a configuration file associated with the package.
公用方法 LoadFromXML 基礎結構。Loads a package and all its objects that have been saved to memory in XML format.
公用方法 LoadUserCertificateByHash 基礎結構。Loads the user certificate using hash.
公用方法 LoadUserCertificateByName 基礎結構。Loads the user certificate by name.
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 PasswordMatch 基礎結構。Determines whether the specified password matches with the package password.
公用方法 PermitUnencryptedSave 基礎結構。Permits the unencrypted information to save.
公用方法 ProcessConfiguration 基礎結構。Specifies the configuration information for a package and its objects.
公用方法 RegenerateID 基礎結構。Creates a new GUID for the package and updates the package ID property.
公用方法 ResumeExecution 基礎結構。Resumes the execution of the package after pausing.
公用方法 SaveToXML 基礎結構。Saves the package to memory in an XML format.
公用方法 SetExpression 基礎結構。Assigns the specified expression to the property.
公用方法 SetProject 基礎結構。Sets the specified project.
公用方法 SuspendExecution 基礎結構。Called when the executable needs to suspend. This method is called by the runtime engine.
公用方法 ToString (繼承自 Object。)
公用方法 Validate 基礎結構。Allows the package to determine if it contains invalid settings that will prevent it from executing successfully.

上層

備註

For more information, see Package.

執行緒安全性

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

請參閱

參考

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間