共用方式為


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-tw,SQL.90).gif Connections Returns the Connections collection of existing connections defined in the package that contains the Script task.
ms215054.pubproperty(zh-tw,SQL.90).gif Events Returns the IDTSComponentEvents collection of existing events defined in the package that contains the Script task.
ms215054.pubproperty(zh-tw,SQL.90).gif ExecutionValue Gets or sets a user-defined object that provides additional information about the results of task execution.
ms215054.pubproperty(zh-tw,SQL.90).gif Logging Returns the IDTSLogging object for the package.Obsolete.
ms215054.pubproperty(zh-tw,SQL.90).gif TaskResult Returns the DTSExecResult of the Script task, mapped to the corresponding member of the ScriptObjectModel.Results enumeration.
ms215054.pubproperty(zh-tw,SQL.90).gif Transaction Returns the transaction associated with the container of the Script task.
ms215054.pubproperty(zh-tw,SQL.90).gif VariableDispenser Returns the VariableDispenser that can be used within the Script task to work with existing variables.
ms215054.pubproperty(zh-tw,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-tw,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms215054.pubmethod(zh-tw,SQL.90).gif GetHashCode  (inherited from Object )
ms215054.pubmethod(zh-tw,SQL.90).gif GetType  (inherited from Object )
ms215054.pubmethod(zh-tw,SQL.90).gif Log Logs an entry to all enabled log providers.
ms215054.pubmethod(zh-tw,SQL.90).gifms215054.static(zh-tw,SQL.90).gif ReferenceEquals  (inherited from Object )
ms215054.pubmethod(zh-tw,SQL.90).gif ToString  (inherited from Object )

頂端

Protected Methods

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

頂端

請參閱

參考

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