| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Tracing Dim handler As EventHandler(Of TraceEventArgs) AddHandler instance.TraceEventHandler, handler | |
| C# | |
|---|---|
public event EventHandler<TraceEventArgs> TraceEventHandler | |
The event handler receives an argument of type TraceEventArgs containing data related to this event. The following TraceEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Arguments | Gets the arguments. |
| Exception | Gets the exception. |
| Format | Gets the format. |
| Message | Gets the message. |
| TraceMask | Gets the trace mask. |
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x