PowerTCP Mail for .NET
Sent Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Segment Class : Sent Property




Indicates whether the data was sent or received.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Sent As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Segment
Dim value As Boolean
 
value = instance.Sent
C# 
public bool Sent {get;}
Managed Extensions for C++ 
public: __property bool get_Sent();
C++/CLI 
public:
property bool Sent {
   bool get();
}

Property Value

true if the data was sent, false otherwise.

Example

The following example demonstrates connecting to a server while specifying a local interface to use.
Visual BasicCopy Code
' Connect to the server, specifying the local interface to use
Tcp1.Connect("atropos", 13, "192.168.0.83", 8888)

' Since connection was to DAYTIME port (13), simply receive the time
Dim seg As Segment = Tcp1.Receive()

Debug.WriteLine("Time reported by server: " + seg.ToString())
C#Copy Code
// Connect to the server, specifying the local interface to use
tcp1.Connect("atropos", 13, "192.168.0.83", 8888);

// Since connection was to DAYTIME port (13), simply receive the time
Segment seg = tcp1.Receive();

Debug.WriteLine("Time reported by server: " + seg.ToString());

Remarks

When using the Tcp component, all data sent or received with Tcp.Send or Tcp.Receive will return a Segment object. The Segment.Sent property indicates whether data was sent or received. If this property is true, then the Segment object was created because data was sent; false, the Segment object was created because data was received.

When using the Udp component, all data sent or received with Udp.Send or Udp.Receive will return a Datagram object. The Datagram.Sent property indicates whether data was sent or received. If this property is true, then the Datagram object was created because data was sent; false, the Datagram object was created because data was received.

When using other PowerTCP components, a Segment or Datagram object is made available to describe data sent or received, often in a Trace event. Access the Sent property to determine if the Trace event was raised because data was sent or received.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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