Questo articolo è stato tradotto automaticamente. Per visualizzare l'articolo in inglese, selezionare la casella di controllo Inglese. È possibile anche visualizzare il testo inglese in una finestra popup posizionando il puntatore del mouse sopra il testo.
Traduzione
Inglese

Metodo DesignSurfaceManager.Dispose (Boolean)

 

Data di pubblicazione: ottobre 2016

Rilascia le risorse non gestite usate da DesignSurfaceManager e, facoltativamente, le risorse gestite.

Spazio dei nomi:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

protected virtual void Dispose(
	bool disposing
)

Parametri

disposing
Type: System.Boolean

true per rilasciare sia le risorse gestite sia quelle non gestite; false per rilasciare solo le risorse non gestite.

The public M:System.ComponentModel.Design.DesignSurfaceManager.Dispose method follows the standard T:System.IDisposable pattern. Calling this method destroys the design surface manager. It also disposes the service container, which causes all services that implement T:System.IDisposable to also be disposed. The protected version of this method is virtual and follows the normal T:System.IDisposable pattern.

System_CAPS_noteNota

Because T:System.ComponentModel.Design.DesignSurfaceManager does not have any native code to clean up, it does not have a finalizer that calls M:System.ComponentModel.Design.DesignSurfaceManager.Dispose(System.Boolean). If you need to call M:System.ComponentModel.Design.DesignSurfaceManager.Dispose(System.Boolean), you must add a finalizer yourself.

This method is called by the public Dispose()method and the M:System.Object.Finalize method. Dispose() invokes the protected Dispose(Boolean) method with the disposing parameter set to true. M:System.Object.Finalize invokes Dispose with disposing set to false.

When the disposing parameter is true, this method releases all resources held by any managed objects that this T:System.ComponentModel.Design.DesignSurfaceManager references. This method invokes the Dispose() method of each referenced object.

Note per gli eredi:

Dispose can be called multiple times by other objects. When overriding Dispose(Boolean) be careful not to reference objects that have been previously disposed of in an earlier call to Dispose. For more information about how to implement Dispose(Boolean), see Implementazione di un metodo Dispose.

For more information about Dispose and M:System.Object.Finalize, see Cleaning Up Unmanaged Resources and Overriding the Finalize Method.

.NET Framework
Disponibile da 2.0
Torna all'inizio
Mostra: