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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。