EventSource.SendCommand Metoda

Definicja

Wysyła polecenie do określonego źródła zdarzeń.

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))

Parametry

eventSource
EventSource

Źródło zdarzeń do wysłania polecenia.

command
EventCommand

Polecenie zdarzenia do wysłania.

commandArguments
IDictionary<String,String>

Argumenty polecenia zdarzenia.

Uwagi

Wywołanie SendCommand polecenia przekazuje polecenie do wywołania zwrotnego OnEventCommand . To, co robi z EventSource poleceniem i jego argumentami, jest specyficzne dla źródła zdarzeń. Argumenty polecenia i polecenia są przekazywane do OnEventCommand wywołania zwrotnego określonego źródła zdarzeń. Jeśli to możliwe, bieżące źródło zdarzeń nie powinno mieć wpływu na zdarzenia filtrowania innych odbiorników zdarzeń; jednak może to nie być możliwe, jeśli polecenie powoduje odzyskiwanie pamięci, opróżnienie systemu lub inną aktywność globalną.

Dotyczy