Sends a command to a specified event source.
Assemblies: mscorlib (in mscorlib.dll)
System.Diagnostics.Tracing (in System.Diagnostics.Tracing.dll)
public static void SendCommand( EventSource eventSource, EventCommand command, IDictionary<string, string> commandArguments )
Calling forwards the command to the OnEventCommand callback. What the EventSource does with the command and its arguments is specific to the event source. The command and command arguments are passed to the OnEventCommand callback of the specified event source. 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.