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 型別公開下列成員。
屬性
名稱 | 說明 | |
---|---|---|
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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。