Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventSource::SendCommand Method (EventSource^, EventCommand, IDictionary<String^, String^>^)

.NET Framework (current version)
 

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft