Share via


Notification.Dispose Method

Releases the resources used by the Notification.

Overload List

Name Description
Notification.Dispose () Releases all resources used by the Component.
Notification.Dispose (Boolean) Releases the unmanaged resources used by the Notification and optionally releases the managed resources.

Supported by the .NET Compact Framework.

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