Smtp Object : State Property |
Visual Basic |
---|
Public Property State As StateConstants |
To protect you from programming errors, most methods return an error condition if your code attempts to send data when no TCP connection exists. By checking the value of this property, your application can always determine the state of the connection.
This property is exposed by most TCP-based controls.