Share via


MessageInterceptor.Finalize Method

3/29/2010

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources, and performs other cleanup operations before garbage collection is performed.

Namespace: Microsoft.WindowsMobile.PocketOutlook.MessageInterception
Assembly: Microsoft.WindowsMobile.PocketOutlook (in microsoft.windowsmobile.pocketoutlook.dll)

Syntax

~MessageInterceptor()
'Declaration
Protected Overrides Sub Finalize

Remarks

The MessageInterceptor class destructor. Disables finalization by the garbage collector by a calling GC.SuppressFinalize(this). This should be called before Dispose, but if the client forgets to call Dispose, this will finalize the object. If Dispose was already called, then this finalizer has no effect.

Note: For console applications, you must call Dispose if you do not use the form’s window thread to process events.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

MessageInterceptor Class
MessageInterceptor Members
Microsoft.WindowsMobile.PocketOutlook.MessageInterception Namespace