Dart.PowerTCP.SslSockets Namespace > Udp Class : Busy Property |
Returns true if a method is currently in use.
[Visual Basic]
<DescriptionAttribute("Returns 'true' if a method is currently in use.")>
<BrowsableAttribute(False)>
Public ReadOnly Property Busy As Boolean
[C#]
[DescriptionAttribute("Returns 'true' if a method is currently in use.")]
[BrowsableAttribute(false)]
public bool Busy {get;}
[C++]
[DescriptionAttribute("Returns 'true' if a method is currently in use.")]
[BrowsableAttribute(false)]
public: __property bool get_Busy();
[C++/CLI]
[DescriptionAttribute("Returns 'true' if a method is currently in use.")]
[BrowsableAttribute(false)]
public:
property bool Busy {
bool get();
}
true if a method is currently is use, otherwise false
When used in PowerTCP Zip Compression for .NET, this property provides protection against accessing a method that is still processing a command.
When used in an Internet communications component, this property provides protection against sending commands over a busy socket. For example, if the PowerTCP component is engaged in sending or receiving data, and another method is called that requires use of the same socket, a BusyException is thrown.
The Object.BusyChanged event is raised whenever the value of this property changes.
For Internet communications components, check this property within your code if you feel a new operation could be attempted over a socket that is already engaged in sending or receiving data. This property is also useful for displaying socket status to the user. For example, a "stoplight" could be part of the user interface that would be red when the Object.Busy property is true, and green when false.
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.