PowerTCP Mail for .NET
RawTrace Event
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Tcp Class : RawTrace Event




Raised when data has been sent/received.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Provides advanced runtime debugging for security implementations")>
<CategoryAttribute("Connection")>
Public Event RawTrace As SegmentEventHandler
Visual Basic (Usage)Copy Code
Dim instance As Tcp
Dim handler As SegmentEventHandler
 
AddHandler instance.RawTrace, handler
C# 
[DescriptionAttribute("Provides advanced runtime debugging for security implementations")]
[CategoryAttribute("Connection")]
public event SegmentEventHandler RawTrace
Managed Extensions for C++ 
[DescriptionAttribute("Provides advanced runtime debugging for security implementations")]
[CategoryAttribute("Connection")]
public: __event SegmentEventHandler* RawTrace
C++/CLI 
[DescriptionAttribute("Provides advanced runtime debugging for security implementations")]
[CategoryAttribute("Connection")]
public:
event SegmentEventHandler^ RawTrace

Event Data

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.

PropertyDescription
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.

Remarks

Use this event for advanced runtime debugging for security implementations. For general data traces use the Object.Trace event.

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.