Returns true if a method is currently in use.
Syntax
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As Pop
Dim value As Boolean
value = instance.Busy |
Property Value
true if a method is currently is use, otherwise false
Example
The following example demonstrates using the BusyChanged event to see if the socket is busy.
| Visual Basic | Copy Code |
|---|
' Be sure to import the namespace by putting "Imports Dart.PowerTCP.Mail"
' at the top of your class.
Private Sub BusyTest()
' Do something to cause the Busy event to be raised
Pop1.Login("mail.test.com", "me", "mypass")
End Sub
Private Sub Pop1_BusyChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Pop1.BusyChanged
If Pop1.Busy Then
Label1.Text = "Socket is busy"
Else
Label1.Text = "Socket is not busy"
End If
End Sub |
| C# | Copy Code |
|---|
// Be sure to import the namespace by putting "using Dart.PowerTCP.Mail;"
// at the top of your class.
private void BusyTest()
{
// Do something to cause the Busy event to be raised
pop1.Login("mail.test.com", "me", "mypass");
}
private void pop1_BusyChanged(object sender, System.EventArgs e)
{
// Check the Busy property.
if(pop1.Busy)
label1.Text = "Socket is busy";
else
label1.Text = "Socket is not busy";
} |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0
See Also