共用方式為


DesignerWindowPane.Dispose Method

Include Protected Members
Include Inherited Members

Disposes the design surface.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Dispose() Disposes the window pane and its resources. (Inherited from WindowPane.)
Protected method Dispose(Boolean) Disposes the design surface. (Overrides WindowPane.Dispose(Boolean).)

Top

Remarks

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

See Also

Reference

DesignerWindowPane Class

Microsoft.VisualStudio.Shell.Design Namespace