Compartir a través de


WmiEventWatcherTask Clase

Contains the members used to configure and run a WMI Event Watcher task, which runs Windows Management Instrumentation (WMI) queries and returns WMI data about a computer system. This class cannot be inherited.

Espacio de nombres:  Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask
Ensamblado:  Microsoft.SqlServer.WMIEWTask (en Microsoft.SqlServer.WMIEWTask.dll)

Sintaxis

'Declaración
<GuidAttribute("36CA769C-EDAA-41d7-9FCA-E0789DC8E858")> _
Public NotInheritable Class WmiEventWatcherTask _
    Inherits Task _
    Implements IWmiEventWatcherTask, IDTSBreakpointSite, IDTSSuspend, IDTSComponentPersist
'Uso
Dim instance As WmiEventWatcherTask
[GuidAttribute("36CA769C-EDAA-41d7-9FCA-E0789DC8E858")]
public sealed class WmiEventWatcherTask : Task, 
    IWmiEventWatcherTask, IDTSBreakpointSite, IDTSSuspend, IDTSComponentPersist
[GuidAttribute(L"36CA769C-EDAA-41d7-9FCA-E0789DC8E858")]
public ref class WmiEventWatcherTask sealed : public Task, 
    IWmiEventWatcherTask, IDTSBreakpointSite, IDTSSuspend, IDTSComponentPersist
[<SealedAttribute>]
[<GuidAttribute("36CA769C-EDAA-41d7-9FCA-E0789DC8E858")>]
type WmiEventWatcherTask =  
    class
        inherit Task
        interface IWmiEventWatcherTask
        interface IDTSBreakpointSite
        interface IDTSSuspend
        interface IDTSComponentPersist
    end
public final class WmiEventWatcherTask extends Task implements IWmiEventWatcherTask, IDTSBreakpointSite, IDTSSuspend, IDTSComponentPersist

Notas

The class uses a WMIConn connection to connect to a server, execute a Windows Management Instrumentation Query Language (WQL) query against it, and wait for events associated with the query to occur. The task then provides notification as to whether a WMI event occurred. The WQL query can be provided directly, or a variable or file connection can be used to dynamically provide WQL queries at execution time.

Similarly, this class can use either a file connection or variable to receive the results of the WQL query. The output type of the WQL query results can also be specified.

For more information about the features of this task, see Tarea Monitor de eventos WMI.

Jerarquía de herencia

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

Seguridad para subprocesos

Todos los miembros públicos static (Shared en Visual Basic) de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.