EventSource.SendCommand メソッド

定義

指定されたイベント ソースにコマンドを送信します。

public:
 static void SendCommand(System::Diagnostics::Tracing::EventSource ^ eventSource, System::Diagnostics::Tracing::EventCommand command, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ commandArguments);
public static void SendCommand (System.Diagnostics.Tracing.EventSource eventSource, System.Diagnostics.Tracing.EventCommand command, System.Collections.Generic.IDictionary<string,string> commandArguments);
public static void SendCommand (System.Diagnostics.Tracing.EventSource eventSource, System.Diagnostics.Tracing.EventCommand command, System.Collections.Generic.IDictionary<string,string?>? commandArguments);
static member SendCommand : System.Diagnostics.Tracing.EventSource * System.Diagnostics.Tracing.EventCommand * System.Collections.Generic.IDictionary<string, string> -> unit
Public Shared Sub SendCommand (eventSource As EventSource, command As EventCommand, commandArguments As IDictionary(Of String, String))

パラメーター

eventSource
EventSource

コマンドを送信する先のイベント ソース。

command
EventCommand

送信するイベント コマンド。

commandArguments
IDictionary<String,String>

イベント コマンドの引数。

注釈

を呼び出すと SendCommand 、コマンドがコールバックに OnEventCommand 転送されます。 EventSourceコマンドとその引数で を実行する内容は、イベント ソースに固有です。 コマンド引数とコマンド引数は、指定したイベント ソースの OnEventCommand コールバックに渡されます。 可能であれば、現在のイベント ソースは他のイベント リスナーのフィルター 処理イベントに影響を与えてはなりません。ただし、コマンドによってガベージ コレクション、システム フラッシュ、またはその他のグローバル アクティビティが発生した場合は、これは不可能な場合があります。

適用対象