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




Gets or sets a value which determines if data is automatically received.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Behavior")>
<DescriptionAttribute("When set to true, data is automatically received (capture it in your EndReceive() event handler).")>
<DefaultValueAttribute()>
Public Property AutoReceive As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Tcp
Dim value As Boolean
 
instance.AutoReceive = value
 
value = instance.AutoReceive
C# 
[CategoryAttribute("Behavior")]
[DescriptionAttribute("When set to true, data is automatically received (capture it in your EndReceive() event handler).")]
[DefaultValueAttribute()]
public bool AutoReceive {get; set;}
Managed Extensions for C++ 
[CategoryAttribute("Behavior")]
[DescriptionAttribute("When set to true, data is automatically received (capture it in your EndReceive() event handler).")]
[DefaultValueAttribute()]
public: __property bool get_AutoReceive();
public: __property void set_AutoReceive( 
   bool value
);
C++/CLI 
[CategoryAttribute("Behavior")]
[DescriptionAttribute("When set to true, data is automatically received (capture it in your EndReceive() event handler).")]
[DefaultValueAttribute()]
public:
property bool AutoReceive {
   bool get();
   void set (    bool value);
}

Property Value

true if data is to be automatically received; false otherwise. The default value is false.

Remarks

Setting this property to true will cause the component to automatically post a BeginReceive immediately after connecting. Once data is received, the Object.EndReceive event is raised. Upon exiting this event, a new Object.BeginReceive is posted. As a result, when you use this methodology, you simply need to connect to the server and send data. Data is automatically received and Object.EndReceive is raised with no explicit call to Object.BeginReceive required.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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