Dart.PowerTCP.SslSockets Namespace > Tcp Class : AutoReceive Property |
Gets or sets a value which determines if data is automatically received.
[Visual Basic]
<DefaultValueAttribute()>
<DescriptionAttribute("When set to true, data is automatically received (capture it in your EndReceive() event handler).")>
<CategoryAttribute("Behavior")>
Public Property AutoReceive As Boolean
[C#]
[DefaultValueAttribute()]
[DescriptionAttribute("When set to true, data is automatically received (capture it in your EndReceive() event handler).")]
[CategoryAttribute("Behavior")]
public bool AutoReceive {get; set;}
[C++]
[DefaultValueAttribute()]
[DescriptionAttribute("When set to true, data is automatically received (capture it in your EndReceive() event handler).")]
[CategoryAttribute("Behavior")]
public: __property bool get_AutoReceive();
public: __property void set_AutoReceive(
bool value
);
[C++/CLI]
[DefaultValueAttribute()]
[DescriptionAttribute("When set to true, data is automatically received (capture it in your EndReceive() event handler).")]
[CategoryAttribute("Behavior")]
public:
property bool AutoReceive {
bool get();
void set (bool value);
}
true if data is to be automatically received; false otherwise. The default value is false.
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.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.