ScriptObjectModel Members

Gives the developer of the Script task programmatic access to objects defined in the package through the global Dts object. The Dts object is an instance of the ScriptObjectModel class.

The following tables list the members exposed by the ScriptObjectModel type.

Public Constructors

  名称 Description
ScriptObjectModel  

顶部

Public Properties

  名称 Description
ms215054.pubproperty(zh-cn,SQL.90).gif Connections Returns the Connections collection of existing connections defined in the package that contains the Script task.
ms215054.pubproperty(zh-cn,SQL.90).gif Events Returns the IDTSComponentEvents collection of existing events defined in the package that contains the Script task.
ms215054.pubproperty(zh-cn,SQL.90).gif ExecutionValue Gets or sets a user-defined object that provides additional information about the results of task execution.
ms215054.pubproperty(zh-cn,SQL.90).gif Logging Returns the IDTSLogging object for the package.Obsolete.
ms215054.pubproperty(zh-cn,SQL.90).gif TaskResult Returns the DTSExecResult of the Script task, mapped to the corresponding member of the ScriptObjectModel.Results enumeration.
ms215054.pubproperty(zh-cn,SQL.90).gif Transaction Returns the transaction associated with the container of the Script task.
ms215054.pubproperty(zh-cn,SQL.90).gif VariableDispenser Returns the VariableDispenser that can be used within the Script task to work with existing variables.
ms215054.pubproperty(zh-cn,SQL.90).gif Variables Returns the Variables collection of existing variables defined in the package that contains the Script task.

顶部

Public Methods

(see also Protected Methods )

  名称 Description
ms215054.pubmethod(zh-cn,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms215054.pubmethod(zh-cn,SQL.90).gif GetHashCode  (inherited from Object )
ms215054.pubmethod(zh-cn,SQL.90).gif GetType  (inherited from Object )
ms215054.pubmethod(zh-cn,SQL.90).gif Log Logs an entry to all enabled log providers.
ms215054.pubmethod(zh-cn,SQL.90).gifms215054.static(zh-cn,SQL.90).gif ReferenceEquals  (inherited from Object )
ms215054.pubmethod(zh-cn,SQL.90).gif ToString  (inherited from Object )

顶部

Protected Methods

  名称 Description
ms215054.protmethod(zh-cn,SQL.90).gif Finalize  (inherited from Object )
ms215054.protmethod(zh-cn,SQL.90).gif MemberwiseClone  (inherited from Object )

顶部

请参阅

参考

ScriptObjectModel Class
Microsoft.SqlServer.Dts.Tasks.ScriptTask Namespace