| Visual Basic (Declaration) | |
|---|---|
Public Event Trace As SegmentEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As SegmentedStream Dim handler As SegmentEventHandler AddHandler instance.Trace, handler | |
| C# | |
|---|---|
public event SegmentEventHandler Trace | |
| Managed Extensions for C++ | |
|---|---|
public: __event SegmentEventHandler* Trace | |
| C++/CLI | |
|---|---|
public: event SegmentEventHandler^ Trace | |
The event handler receives an argument of type SegmentEventArgs containing data related to this event. The following SegmentEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Exception | Gets any exception which occurred during the asynchronous operation. |
| Segment | The Segment object referencing the data that was sent or received. |
| State | Gets the object that was included as part of the associated method call. |
Target Platforms: Microsoft .NET Framework 2.0