共用方式為


TracedEvent.Attach(Action) Method

Definition

Attach the event handler.

public:
 void Attach(Action ^ handler);
public void Attach (Action handler);
member this.Attach : Action -> unit
Public Sub Attach (handler As Action)

Parameters

handler
Action

The event handler to attach, not null.

Applies to