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 których ma być wysyłane polecenie.

command
EventCommand

Polecenie zdarzenia do wysłania.

commandArguments
IDictionary<String,String>

Argumenty polecenia zdarzenia.

Uwagi

Wywołanie SendCommand przekazuje polecenie do wywołania zwrotnego OnEventCommand . Co robi polecenie EventSource i jego argumenty są specyficzne dla źródła zdarzeń. Argumenty poleceń i poleceń 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