System.Windows.Forms
1.0.5000.0
2.0.0.0
System.Object
System.IDisposable
You can use the class to redefine the circumstances that cause a message loop to exit. By default, the listens to the event on the application's main , then exits the thread's message loop.
Specifies the contextual information about an application thread.
Constructor
To be added.
Initializes a new instance of the class with no context.
1.0.5000.0
2.0.0.0
Constructor
If is not overridden, the message loop of the thread terminates when is closed.
Initializes a new instance of the class with the specified .
The main of the application to use for context.
1.0.5000.0
2.0.0.0
Method
System.Void
Call when you are finished using the . The method leaves the in an unusable state. After calling , you must release all references to the so the garbage collector can reclaim the memory that the was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.
Always call before you release your last reference to the . Otherwise, the resources it is using will not be freed until the garbage collector calls the object's Finalize method.
Releases all resources used by the .
1.0.5000.0
2.0.0.0
Method
System.Void
This method is called by the public Dispose() method and the method. Dispose() invokes the protected method with the parameter set to true. invokes Dispose with set to false.
When the parameter is true, this method releases all resources held by any managed objects that this references. This method invokes the Dispose() method of each referenced object.
Releases the unmanaged resources used by the and optionally releases the managed resources.
true to release both managed and unmanaged resources; false to release only unmanaged resources.
1.0.5000.0
2.0.0.0
Method
System.Void
This method calls .
and do not actually cause the thread to terminate. These methods raise the event to which the object listens. The object then terminates the thread.
Terminates the message loop of the thread.
1.0.5000.0
2.0.0.0
Method
System.Void
This method is called from .
and do not actually cause the thread to terminate. These methods raise the event to which the object listens. The object then terminates the thread.
Terminates the message loop of the thread.
1.0.5000.0
2.0.0.0
Method
System.Void
This method overrides and cleans up resources by calling Dispose(false). Override Dispose(Boolean) to customize the cleanup.
Application code should not call this method; an object's Finalize method is automatically invoked during garbage collection, unless finalization by the garbage collector has been disabled by a call to the method.
For more information, see [<topic://cpconFinalizeMethodscDestructors>], [<topic://cpconCleaningUpUnmanagedResources>], and [<topic://cpconOverridingFinalizeMethod>].
Attempts to free resources and perform other cleanup operations before the application context is reclaimed by garbage collection.
1.0.5000.0
2.0.0.0
Property
System.Windows.Forms.Form
To be added.
This property determines the main for this context. This property can change at any time. If is not overridden, the message loop of the thread terminates when the parameter closes.
Gets or sets the to use as context.
1.0.5000.0
2.0.0.0
Method
System.Void
The default implementation of this method calls .
Calls , which raises the event.
The object that raised the event.
The that contains the event data.
1.0.5000.0
2.0.0.0
Property
2.0.0.0
System.ComponentModel.TypeConverter(typeof(System.ComponentModel.StringConverter))
System.ComponentModel.Localizable(false)
System.ComponentModel.DefaultValue(null)
System.ComponentModel.Bindable(true)
System.Object
To be added.
Any type derived from the class can be assigned to this property. If the property is set through the Windows Forms designer, only text can be assigned.
A common use for the property is to store data that is closely associated with the control. For example, if you have a control that displays information about a customer, you might store a that contains the customer's order history in that control's property so the data can be accessed quickly.
Gets or sets an object that contains data about the control.
Event
System.EventHandler
To be added.
Occurs when the message loop of the thread should be terminated, by calling .
1.0.5000.0
2.0.0.0