Notification.Dispose Method

Include Protected Members
Include Inherited Members

Include .NET Framework Members

Include .NET Compact Framework Members
Include XNA Framework Members

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

Releases the resources used by the Notification.

Overload List

  Name Description
Public methodSupported by the .NET Compact Framework Dispose() Releases all resources used by the Component. (Inherited from Component.)
Protected methodSupported by the .NET Compact Framework Dispose(Boolean) Releases the unmanaged resources used by the Notification and optionally releases the managed resources. (Overrides Component.Dispose(Boolean).)

Top

Remarks

Call Dispose when you are finished using the Notification. The Dispose method leaves the Notification in an unusable state. After calling Dispose, you must release all references to the Notification so the garbage collector can reclaim the memory that the Notification 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 Notification. Otherwise, the resources it is using will not be freed until the garbage collector calls the Notification object's Finalize method.

See Also

Reference

Notification Class

Notification Members

Microsoft.WindowsCE.Forms Namespace