Compartilhar via


MessageWindow.Dispose Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Releases all resources used by the MessageWindow.

Namespace:  Microsoft.WindowsCE.Forms
Assembly:  Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As MessageWindow

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
abstract Dispose : unit -> unit 
override Dispose : unit -> unit 

Implements

IDisposable.Dispose()

Remarks

Call Dispose when you are finished using the MessageWindow. The Dispose method leaves the MessageWindow in an unusable state. After calling Dispose, you must release all references to the MessageWindow so the garbage collector can reclaim the memory that the MessageWindow was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

Note

Always call Dispose before you release your last reference to the MessageWindow. Otherwise, the resources it is using will not be freed until the garbage collector calls the MessageWindow object's Finalize method.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

See Also

Reference

MessageWindow Class

MessageWindow Members

Microsoft.WindowsCE.Forms Namespace