Dart.PowerTCP.EmailValidation Namespace > Dns Class : Trace Event (Dns) |
Raised when data has been sent/received.
[Visual Basic]
<CategoryAttribute()>
<DescriptionAttribute("Provides advanced runtime debugging")>
Public Event Trace() As DatagramEventHandler
[C#]
[CategoryAttribute()]
[DescriptionAttribute("Provides advanced runtime debugging")]
public event DatagramEventHandler Trace();
[C++]
[CategoryAttribute()]
[DescriptionAttribute("Provides advanced runtime debugging")]
public: __event DatagramEventHandler* Trace();
[C++/CLI]
[CategoryAttribute()]
[DescriptionAttribute("Provides advanced runtime debugging")]
public:
event DatagramEventHandler^ Trace();
The event handler receives an argument of type DatagramEventArgs containing data related to this event. The following DatagramEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Datagram | Gets the Datagram object that represents the datagram for which the event was raised. |
Exception | Gets any exception which occurred during the asynchronous operation. |
State | Gets the object that was included as part of the associated method call. |
This event is raised when commands or data has been sent/received. If you are using a component which uses TCP as the transport protocol a SegmentEventArgs object is passed into the event containing any commands or data sent or received. If you are using a component which uses UDP as the transport protocol a DatagramEventArgs object is passed into the event containing any commands or data sent or received.
The Object.RawTrace event always reports actual data sent/received over the socket. The Count of each segment reflects the number of bytes actually written and received. The Object.Trace event reports data sent/received at a higher level. For example, for the Telnet component, Object.Trace reports data sent/received, but does not report IAC option sequences that are processed by TelnetStream, whereas Object.RawTrace allows you to trace the actual data sent/received, including Telnet option commands.
If you are using the PowerTCP component as a reference, you must create a method to handle the event yourself. For more information on using events using PowerTCP.NET within the Visual Studio.NET environment, see Using Events In PowerTCP.
Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista
Send comments on this topic.
Documentation version 1.0.3.0.
© 2008 Dart Communications. All rights reserved.