EventListener.EventSourceCreated 事件

定义

当事件源(EventSource 对象)附加到调度程序时发生。Occurs when an event source (EventSource object) is attached to the dispatcher.

public:
 event EventHandler<System::Diagnostics::Tracing::EventSourceCreatedEventArgs ^> ^ EventSourceCreated;
public event EventHandler<System.Diagnostics.Tracing.EventSourceCreatedEventArgs> EventSourceCreated;
member this.EventSourceCreated : EventHandler<System.Diagnostics.Tracing.EventSourceCreatedEventArgs> 
Public Event EventSourceCreated As EventHandler(Of EventSourceCreatedEventArgs) 
Public Custom Event EventSourceCreated As EventHandler(Of EventSourceCreatedEventArgs) 

注解

创建事件侦听器时,以及在创建事件侦听器后创建的所有事件源的所有现有事件源,都将发生 EventSourceCreatedThe EventSourceCreated occurs for all existing event sources when the event listener is created, as well as for any event sources that are created after the event listener's creation.

适用于