EventSource.SendCommand Method

.NET Framework 4.5

Sends a command to a specified event source.

Namespace:  System.Diagnostics.Tracing
Assembly:  mscorlib (in mscorlib.dll)

public static void SendCommand(
	EventSource eventSource,
	EventCommand command,
	IDictionary<string, string> commandArguments
)

Parameters

eventSource
Type: System.Diagnostics.Tracing.EventSource

The event source to send the command to.

command
Type: System.Diagnostics.Tracing.EventCommand

The event command to send.

commandArguments
Type: System.Collections.Generic.IDictionary<String, String>

The arguments for the event command.

Calling SendCommand 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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft