Partager via


Classe ActiveXScriptTask

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask
Assembly :  Microsoft.SqlServer.ActiveXScriptTask (en Microsoft.SqlServer.ActiveXScriptTask.dll)

Syntaxe

'Déclaration
Public NotInheritable Class ActiveXScriptTask _
    Inherits Task _
    Implements IDTSComponentPersist, IDTSActiveXScriptTask, IDTSBreakpointSite, IDTSSuspend
'Utilisation
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

Le type ActiveXScriptTask expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ActiveXScriptTask Initializes a new instance of the ActiveXScriptTask class.

Haut de la page

Propriétés

  Nom Description
Propriété publique DebugMode A Boolean that indicates if a task should check if breakpoints are enabled.
Propriété publique EntryMethod Stores the entry method for the corresponding scripting language.
Propriété publique ExecutionValue Returns a user-defined object. This field is read-only. (remplace Task. . :: . .ExecutionValue.)
Propriété publique ExecutionValueProperty Uses the ExecutionValueChoice to determine what the ExecutionValue will contain.
Propriété publique ScriptingLanguage Gets or sets the name of the scripting language.
Propriété publique ScriptText Gets or sets the script to run.
Propriété publique SuspendRequired Gets or sets a Boolean that indicates whether tasks should suspend when they encounter a breakpoint.
Propriété publique Version *** Member deprecated; see Remarks. ***    Returns the version of the task. This property is read-only. (hérité de Task.)

Haut de la page

Méthodes

  Nom Description
Méthode publique 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.
Méthode publique CanUpdate *** Member deprecated; see Remarks. ***    A Boolean that indicates whether the new package XML can update the old package XML. (hérité de Task.)
Méthode publique Equals Determines whether two object instances are equal. (hérité de DtsObject.)
Méthode publique Execute Runs the task. (remplace Task. . :: . .Execute(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging, Object).)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetConnectionID Gets a String containing the ID of the connection. (hérité de Task.)
Méthode publique GetConnectionName Gets a String containing the name of the connection. (hérité de Task.)
Méthode publique GetHashCode Returns the hash code for this instance. (hérité de DtsObject.)
Méthode publique GetType (hérité de Object.)
Méthode publique InitializeTask Initializes the properties associated with the task. This method is called by the runtime and is not used in code. (hérité de Task.)
Méthode publique LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application..::..LoadPackage method.
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ResumeExecution Resumes execution of the task after pausing.
Méthode publique SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application..::..SaveToXml method.
Méthode publique SuspendExecution Indicates that the executable needs to suspend.
Méthode publique ToString (hérité de Object.)
Méthode publique Update *** Member deprecated; see Remarks. ***    This method updates the old package XML with the new package XML if CanUpdate is set to true. (hérité de Task.)
Méthode publique Validate Verifies that the task is properly configured. (remplace Task. . :: . .Validate(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging).)

Haut de la page

Champs

  Nom Description
Champ public Variables Stores the Variables collection, which contains a collection of Variable objects.

Haut de la page

Notes

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.

Important

Cette fonctionnalité sera supprimée dans la prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et modifiez dès que possible les applications qui utilisent actuellement cette fonctionnalité.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.