Smtp.Dispose Method
Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9119)
Dispose()
Disposes the Smtp object and all the socket objects.
Declaration
public void Dispose()
Implements
Remarks
Calling this method ensures that all resources are freed.
Dispose(Boolean)
Releases the unmanaged resources used by the Smtp and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |