EventSource.SendCommand(EventSource, EventCommand, IDictionary<String,String>) Metodo

Definizione

Invia un comando a un'origine evento specificata.Sends a command to a specified event source.

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);
static member SendCommand : System.Diagnostics.Tracing.EventSource * System.Diagnostics.Tracing.EventCommand * System.Collections.Generic.IDictionary<string, string> -> unit

Parametri

eventSource
EventSource

L'origine evento a cui inviare il comando.The event source to send the command to.

command
EventCommand

Il comando di evento da inviare.The event command to send.

commandArguments
IDictionary<String,String>

Argomenti per il comando evento.The arguments for the event command.

Commenti

La SendCommand chiamataOnEventCommand a trasmette il comando al callback.Calling SendCommand forwards the command to the OnEventCommand callback. Ciò che EventSource fa con il comando e i relativi argomenti è specifico dell'origine evento.What the EventSource does with the command and its arguments is specific to the event source. Gli argomenti del comando e del comando vengono passati OnEventCommand al callback dell'origine evento specificata.The command and command arguments are passed to the OnEventCommand callback of the specified event source. Se possibile, l'origine evento corrente non deve influire sugli altri eventi di filtro dei listener di eventi; Tuttavia, questo potrebbe non essere possibile se il comando causa un Garbage Collection, uno scaricamento del sistema o un'altra attività globale.If possible, the current event source should not affect other event listeners' filtering events; however, that may not be possible if the command causes a garbage collection, a system flush, or some other global activity.

Si applica a