| 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.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.
Target Platforms: Microsoft .NET Framework 2.0
Copy Code