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;
public event EventHandler<System.Diagnostics.Tracing.EventSourceCreatedEventArgs> EventSourceCreated;
member this.EventSourceCreated : EventHandler<System.Diagnostics.Tracing.EventSourceCreatedEventArgs> 
Public Custom Event EventSourceCreated As EventHandler(Of EventSourceCreatedEventArgs) 
Public Event EventSourceCreated As EventHandler(Of EventSourceCreatedEventArgs) 

事件类型

EventHandler<EventSourceCreatedEventArgs>

注解

EventSourceCreated 创建事件侦听器时,以及在创建事件侦听器之后创建的任何事件源,都将发生此事件。The 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.

适用于