Share via


EmailMessage.Dispose method (Boolean)

The Dispose method releases the unmanaged resources used by the EmailMessage and optionally releases the managed resources.

Namespace:  Microsoft.Exchange.Data.Transport.Email
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Usage
Dim disposing As Boolean

Me.Dispose(disposing)
protected virtual void Dispose(
    bool disposing
)

Parameters

  • disposing
    Type: System.Boolean

    True to release both managed and unmanaged resources; false to release only unmanaged resources.

See also

Reference

EmailMessage class

EmailMessage members

Dispose overload

Microsoft.Exchange.Data.Transport.Email namespace