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 Brush.Dispose ()

 

Rilascia tutte le risorse usate dall'oggetto Brush.

Spazio dei nomi:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public void Dispose()

Calling M:System.Drawing.Brush.Dispose allows the resources used by this T:System.Drawing.Brush object to be reallocated for other purposes.

Call M:System.Drawing.Brush.Dispose when you are finished using the T:System.Drawing.Brush. The M:System.Drawing.Brush.Dispose method leaves the T:System.Drawing.Brush in an unusable state. After calling M:System.Drawing.Brush.Dispose, you must release all references to the T:System.Drawing.Brush so the garbage collector can reclaim the memory that the T:System.Drawing.Brush was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

System_CAPS_noteNota

Always call M:System.Drawing.Brush.Dispose before you release your last reference to the T:System.Drawing.Brush. Otherwise, the resources it is using will not be freed until the garbage collector calls the T:System.Drawing.Brush object's Finalize method.

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