Occurs when the connect has completed.
The event handler receives an argument of type ConnectCompletedEventArgs containing data related to this event. The following ConnectCompletedEventArgs property provides information specific to this event.
| Property | Description |
|---|---|
| AsyncResult | Gets the result of the asynchronous connect operation. |
BeginConnect is used in asynchronous processing to raise the ConnectCompleted event when the connect has completed.
EndConnect is used to complete the operation initiated by a call to BeginConnect and get connection information when the ConnectCompleted event is raised.