EventSource.SendCommand 메서드

정의

명령을 지정된 이벤트 소스로 보냅니다.

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))

매개 변수

eventSource
EventSource

명령을 보낼 이벤트 소스입니다.

command
EventCommand

보낼 이벤트 명령입니다.

commandArguments
IDictionary<String,String>

이벤트 명령에 대한 인수입니다.

설명

호출 SendCommand 하면 명령이 콜백으로 전달됩니다 OnEventCommand . EventSource 명령 및 해당 인수를 사용하여 수행하는 일은 이벤트 원본과 관련이 있습니다. 명령 및 명령 인수는 지정된 이벤트 원본의 콜백에 전달 OnEventCommand 됩니다. 가능하면 현재 이벤트 원본은 다른 이벤트 수신기의 필터링 이벤트에 영향을 미치지 않아야 합니다. 그러나 명령으로 인해 가비지 수집, 시스템 플러시 또는 기타 전역 활동이 발생하는 경우에는 불가능할 수 있습니다.

적용 대상