Partager via


Classe PackageClass

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

Represents a class for the Package interface.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly :  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntaxe

'Déclaration
<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
'Utilisation
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

Le type PackageClass expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique PackageClass Infrastructure. Initializes a new instance of the PackageClass class.

Haut de la page

Propriétés

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

Haut de la page

Méthodes

  Nom Description
Méthode publique AcceptBreakpointManager Infrastructure. Passes a breakpoint manager to a package.
Méthode publique CheckSignature Infrastructure. Checks the status of the digital signature of the package.
Méthode publique ComputeExpressions Infrastructure. Computes the expression of this PackageClass object.
Méthode publique Equals (hérité de Object.)
Méthode publique Execute() Infrastructure. Returns a DTSExecResult enumeration that contains information about the success or failure of the package execution.
Méthode publique Execute(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100, Object) Infrastructure. Runs the application, container, or package as part of a package workflow.
Méthode publique ExportConfigurationFile Infrastructure. Creates an XML file that contains all deployable variables in the package.
Méthode protégée Finalize (hérité de Object.)
Méthode publique FindReferencedObjects Infrastructure. Returns a reference object enumeration.
Méthode publique GetBreakpointTargets Infrastructure. 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.
Méthode publique GetExpression Infrastructure. Returns a value that contains the expression for the specified property.
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetObjectFromPackagePath Infrastructure. Returns an object from the specified package path.
Méthode publique GetParentID Infrastructure. Retrieves the parent identifier of the package.
Méthode publique GetPreExecutionPackageXML Infrastructure. Retrieves the pre-execution of a package XML.
Méthode publique GetProject Infrastructure. Retrieves the DTS project.
Méthode publique GetType (hérité de Object.)
Méthode publique IDTSExecutable100_Execute Infrastructure. Executes the executable.
Méthode publique IDTSExecutable100_Validate Infrastructure. Verifies that the executable will successfully execute by validating all its dependencies and other items before executing it.
Méthode publique IDTSPackageSigning100_CheckSignature Infrastructure. Checks the signature of the package.
Méthode publique IDTSPackageSigning100_LoadUserCertificateByHash Infrastructure. Loads the user certificate using hash.
Méthode publique IDTSPackageSigning100_LoadUserCertificateByName Infrastructure. Loads the user certificate by name.
Méthode publique IDTSSuspend100_ResumeExecution Infrastructure. Resumes the execution of the task after pausing.
Méthode publique IDTSSuspend100_SuspendExecution Infrastructure. Notifies that the executable needs to suspend.
Méthode publique ImportConfigurationFile Infrastructure. Loads a configuration file associated with the package.
Méthode publique LoadFromXML Infrastructure. Loads a package and all its objects that have been saved to memory in XML format.
Méthode publique LoadUserCertificateByHash Infrastructure. Loads the user certificate using hash.
Méthode publique LoadUserCertificateByName Infrastructure. Loads the user certificate by name.
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique PasswordMatch Infrastructure. Determines whether the specified password matches with the package password.
Méthode publique PermitUnencryptedSave Infrastructure. Permits the unencrypted information to save.
Méthode publique ProcessConfiguration Infrastructure. Specifies the configuration information for a package and its objects.
Méthode publique RegenerateID Infrastructure. Creates a new GUID for the package and updates the package ID property.
Méthode publique ResumeExecution Infrastructure. Resumes the execution of the package after pausing.
Méthode publique SaveToXML Infrastructure. Saves the package to memory in an XML format.
Méthode publique SetExpression Infrastructure. Assigns the specified expression to the property.
Méthode publique SetProject Infrastructure. Sets the specified project.
Méthode publique SuspendExecution Infrastructure. Called when the executable needs to suspend. This method is called by the runtime engine.
Méthode publique ToString (hérité de Object.)
Méthode publique Validate Infrastructure. Allows the package to determine if it contains invalid settings that will prevent it from executing successfully.

Haut de la page

Notes

For more information, see Package.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Dts.Runtime.Wrapper