Closes connection to SMTP server.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public override void Disconnect()
Public Overrides Sub Disconnect
public: virtual void Disconnect() override
abstract Disconnect : unit -> unit override Disconnect : unit -> unit
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when SMTP client is not connected. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119