WmiEventWatcherTask クラス

定義

Windows Management Instrumentation (WMI) クエリを実行したり、コンピューター システムに関連する WMI データを返す WMI イベント監視タスクの構成と実行に使用されるメンバーを含みます。 このクラスは継承できません。

public ref class WmiEventWatcherTask sealed : Microsoft::SqlServer::Dts::Runtime::Task, Microsoft::SqlServer::Dts::Runtime::IDTSBreakpointSite, Microsoft::SqlServer::Dts::Runtime::IDTSComponentPersist, Microsoft::SqlServer::Dts::Tasks::WmiEventWatcherTask::IWmiEventWatcherTask
[Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2016; © 2015 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=13.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")]
[System.Runtime.InteropServices.Guid("3F9BD2DF-08F5-4809-8946-2A3694DBF6F3")]
public sealed class WmiEventWatcherTask : Microsoft.SqlServer.Dts.Runtime.Task, Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist, Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.IWmiEventWatcherTask
[Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2017; © 2017 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=14.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")]
[System.Runtime.InteropServices.Guid("8984C204-B19A-4EEC-9A66-C4329CB8A27F")]
public sealed class WmiEventWatcherTask : Microsoft.SqlServer.Dts.Runtime.Task, Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist, Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.IWmiEventWatcherTask
[Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2019; © 2019 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=15.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")]
[System.Runtime.InteropServices.Guid("DE6F9E8F-435D-4F98-BF59-0C03EF080720")]
public sealed class WmiEventWatcherTask : Microsoft.SqlServer.Dts.Runtime.Task, Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist, Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.IWmiEventWatcherTask
[<Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2016; © 2015 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=13.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")>]
[<System.Runtime.InteropServices.Guid("3F9BD2DF-08F5-4809-8946-2A3694DBF6F3")>]
type WmiEventWatcherTask = class
    inherit Task
    interface IWmiEventWatcherTask
    interface IDTSBreakpointSite
    interface IDTSSuspend
    interface IDTSComponentPersist
[<Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2017; © 2017 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=14.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")>]
[<System.Runtime.InteropServices.Guid("8984C204-B19A-4EEC-9A66-C4329CB8A27F")>]
type WmiEventWatcherTask = class
    inherit Task
    interface IWmiEventWatcherTask
    interface IDTSBreakpointSite
    interface IDTSSuspend
    interface IDTSComponentPersist
[<Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2019; © 2019 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=15.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")>]
[<System.Runtime.InteropServices.Guid("DE6F9E8F-435D-4F98-BF59-0C03EF080720")>]
type WmiEventWatcherTask = class
    inherit Task
    interface IWmiEventWatcherTask
    interface IDTSBreakpointSite
    interface IDTSSuspend
    interface IDTSComponentPersist
Public NotInheritable Class WmiEventWatcherTask
Inherits Task
Implements IDTSBreakpointSite, IDTSComponentPersist, IWmiEventWatcherTask
継承
WmiEventWatcherTask
属性
実装

注釈

このクラスは、WMIConn 接続を使用してサーバーに接続し、そのサーバーに対して Windows Management Instrumentation Query Language (WQL) クエリを実行して、クエリに関連付けられたイベントが発生するのを待機します。 その後、タスクは WMI イベントが発生したかどうかについて通知します。 WQL クエリを直接指定することも、実行時に変数またはファイル接続を使用して WQL クエリを動的に提供することもできます。

同様に、このクラスはファイル接続または変数を使用して、WQL クエリの結果を受信できます。 WQL クエリ結果の出力の種類を指定することもできます。

このタスクの機能の詳細については、「 WMI Event Watcher タスク」を参照してください。

コンストラクター

WmiEventWatcherTask()

WmiEventWatcherTask クラスの新しいインスタンスを初期化します。

プロパティ

ActionAtEvent

タスクが Windows Management Instrumentation (WMI) イベントを受け取った場合の WmiEventWatcherTask の応答を決定します。

ActionAtTimeout

指定した Windows Management Instrumentation (WMI) イベントを受け取らずにタスクがタイムアウトした場合の WmiEventWatcherTask の応答を決定します。

AfterEvent

指定した Windows Management Instrumentation (WMI) イベントをタスクが受け取った場合の WmiEventWatcherTask の応答を決定します。

AfterTimeout

指定した Windows Management Instrumentation (WMI) イベントを受け取らずにタスクがタイムアウトした場合の WmiEventWatcherTask の応答を決定します。

DebugMode

ブレークポイントが有効になっているかどうかを確認する必要があるかどうかを WmiEventWatcherTask 示すブール値。

ExecutionValue

タスクの結果を含む オブジェクトを WmiEventWatcherTask 取得します。

NumberOfEvents

WmiEventWatcherTask が監視する必要がある Windows Management Instrumentation (WMI) イベントの数を取得します。値の設定も可能です。

SuspendRequired

ブレークポイントが発生したときにタスクを中断する必要があるかどうかを示すブール型 (Boolean) の値を取得または設定します。 この値は、ブレークポイントに到達したときにタスクおよびコンテナーに対してランタイム エンジンで設定されます。

TargetServerVersion

Windows Management Instrumentation (WMI) クエリを実行したり、コンピューター システムに関連する WMI データを返す WMI イベント監視タスクの構成と実行に使用されるメンバーを含みます。 このクラスは継承できません。

(継承元 Task)
Timeout

タスクがタイムアウトする前に Windows Management Instrumentation (WMI) イベントの受信を待機する秒数を取得します。値の設定も可能です。

Version

*** このメンバーは非推奨です。「解説」を参照してください。 タスクのバージョンを返します。 このプロパティは読み取り専用です。

(継承元 Task)
WmiConnection

WMIConn タスクが使用する WmiEventWatcherTask クラスの名前を取得します。値の設定も可能です。

WqlQuerySource

WmiEventWatcherTask によって実行される Windows Management Instrumentation Query Language (WQL) クエリのソースを取得します。値の設定も可能です。

WqlQuerySourceType

QuerySourceType によって実行される Windows Management Instrumentation Query Language (WQL) クエリのソースの種類 (ファイル接続、変数など) を示す WmiEventWatcherTask 値を取得または設定します。

メソッド

AcceptBreakpointManager(BreakpointManager)

BreakpointManager タスクに WmiEventWatcherTask 参照を渡します。 このメソッドはランタイムから呼び出されるメソッドであり、コードでは使用されません。

CanUpdate(String)

*** このメンバーは非推奨です。「解説」を参照してください。 新しいパッケージ XML が古いパッケージ XML を更新できるかどうかを示すブール値。

(継承元 Task)
Equals(Object)

2 つのオブジェクト インスタンスが等しいかどうかを判断します。

(継承元 DtsObject)
Execute(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging, Object)

タスクを実行します。

GetConnectionID(Connections, String)

接続の ID を含む文字列型 (String) の値を取得します。

(継承元 Task)
GetConnectionName(Connections, String)

接続の名前を含む文字列型 (String) の値を取得します。

(継承元 Task)
GetHashCode()

このインスタンスのハッシュ コードを返します。

(継承元 DtsObject)
InitializeTask(Connections, VariableDispenser, IDTSInfoEvents, IDTSLogging, EventInfos, LogEntryInfos, ObjectReferenceTracker)

WmiEventWatcherTask タスクに関連付けられたプロパティを初期化します。 このメソッドはランタイムから呼び出されるメソッドであり、コードでは使用されません。

LoadFromXML(XmlElement, IDTSInfoEvents)

このメソッドをアプリケーション コードから呼び出すことはできません。 .xml として保存されたパッケージを読み込むには、LoadPackage(String, IDTSEvents) メソッドを使用します。

ResumeExecution()

一時停止したタスクの実行を再開します。 タスクまたはコンテナーは、ランタイム エンジンによって再開されます。

SaveToXML(XmlDocument, IDTSInfoEvents)

このメソッドをアプリケーション コードから呼び出すことはできません。 パッケージを .xml として保存するには、SaveToXml(String, Package, IDTSEvents) メソッドを使用します。

SuspendExecution()

実行可能ファイルを中断する必要があることを示します。 このメソッドはランタイム エンジンから呼び出されます。

Update(String)

*** このメンバーは非推奨です。「解説」を参照してください。 が true に設定されている場合 CanUpdate(String) 、このメソッドは新しいパッケージ XML で古いパッケージ XML を更新します。

(継承元 Task)
Validate(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging)

タスクが正しく構成されていることを確認します。

適用対象