ActiveXScriptTask 类

Enables migration for ActiveX scripts created in SQL Server 2000. The ActiveXScriptTask is not intended for future use. This class cannot be inherited.

继承层次结构

System. . :: . .Object
  Microsoft.SqlServer.Dts.Runtime. . :: . .DtsObject
    Microsoft.SqlServer.Dts.Runtime. . :: . .Task
      Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask..::..ActiveXScriptTask

命名空间:  Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask
程序集:  Microsoft.SqlServer.ActiveXScriptTask(在 Microsoft.SqlServer.ActiveXScriptTask.dll 中)

语法

声明
Public NotInheritable Class ActiveXScriptTask _
    Inherits Task _
    Implements IDTSComponentPersist, IDTSActiveXScriptTask, IDTSBreakpointSite, IDTSSuspend
用法
Dim instance As ActiveXScriptTask
public sealed class ActiveXScriptTask : Task, 
    IDTSComponentPersist, IDTSActiveXScriptTask, IDTSBreakpointSite, IDTSSuspend
public ref class ActiveXScriptTask sealed : public Task, 
    IDTSComponentPersist, IDTSActiveXScriptTask, IDTSBreakpointSite, IDTSSuspend
[<SealedAttribute>]
type ActiveXScriptTask =  
    class
        inherit Task
        interface IDTSComponentPersist
        interface IDTSActiveXScriptTask
        interface IDTSBreakpointSite
        interface IDTSSuspend
    end
public final class ActiveXScriptTask extends Task implements IDTSComponentPersist, IDTSActiveXScriptTask, IDTSBreakpointSite, IDTSSuspend

ActiveXScriptTask 类型公开以下成员。

构造函数

  名称 说明
公共方法 ActiveXScriptTask Initializes a new instance of the ActiveXScriptTask class.

页首

属性

  名称 说明
公共属性 DebugMode A Boolean that indicates if a task should check if breakpoints are enabled.
公共属性 EntryMethod Stores the entry method for the corresponding scripting language.
公共属性 ExecutionValue Returns a user-defined object. This field is read-only. (覆盖 Task. . :: . .ExecutionValue。)
公共属性 ExecutionValueProperty Uses the ExecutionValueChoice to determine what the ExecutionValue will contain.
公共属性 ScriptingLanguage Gets or sets the name of the scripting language.
公共属性 ScriptText Gets or sets the script to run.
公共属性 SuspendRequired Gets or sets a Boolean that indicates whether tasks should suspend when they encounter a breakpoint.
公共属性 Version *** Member deprecated; see Remarks. ***    Returns the version of the task. This property is read-only. (从 Task 继承。)

页首

方法

  名称 说明
公共方法 AcceptBreakpointManager Passes a BreakpointManager to a task. The task will use the breakpoint manager to create, remove, and check the status of breakpoints. This method is called by the runtime and is not used in code.
公共方法 CanUpdate *** Member deprecated; see Remarks. ***    A Boolean that indicates whether the new package XML can update the old package XML. (从 Task 继承。)
公共方法 Equals Determines whether two object instances are equal. (从 DtsObject 继承。)
公共方法 Execute Runs the task. (覆盖 Task. . :: . .Execute(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging, Object)。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetConnectionID Gets a String containing the ID of the connection. (从 Task 继承。)
公共方法 GetConnectionName Gets a String containing the name of the connection. (从 Task 继承。)
公共方法 GetHashCode Returns the hash code for this instance. (从 DtsObject 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 InitializeTask Initializes the properties associated with the task. This method is called by the runtime and is not used in code. (从 Task 继承。)
公共方法 LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application..::..LoadPackage method.
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ResumeExecution Resumes execution of the task after pausing.
公共方法 SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application..::..SaveToXml method.
公共方法 SuspendExecution Indicates that the executable needs to suspend.
公共方法 ToString (从 Object 继承。)
公共方法 Update *** Member deprecated; see Remarks. ***    This method updates the old package XML with the new package XML if CanUpdate is set to true. (从 Task 继承。)
公共方法 Validate Verifies that the task is properly configured. (覆盖 Task. . :: . .Validate(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging)。)

页首

字段

  名称 说明
公共字段 Variables Stores the Variables collection, which contains a collection of Variable objects.

页首

注释

The task is a successor in Integration Services for the legacy ActiveX script tasks. Any legacy tasks that use macros defined in SQL Server 2000 will not run in Integration Services. The task can run VBScript and JScript without accessing the Integration Services programming model.

重要说明重要提示

下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。