Client - Dispose

[C#]

[ClientBase] public override sealed void Dispose();

Remarks

Releases all resources used by the object. If the client is connected or connecting, then Dispose also initiates a [Client]Disconnect. This does not imply that the client is disconnected by the time Dispose returns; the disconnect operation might and probably will still be in progress.