Op Englesch liesen Editéieren

Deelen iwwer


HwndHost.Dispose Method

Definition

Immediately frees any system resources that the object might hold.

Overloads

Dispose()

Immediately frees any system resources that the object might hold.

Dispose(Boolean)

Immediately frees any system resources that the object might hold.

Remarks

Wichteg

This type or member is not available in the Internet security zone.

Derived classes can override this method (by the Dispose(Boolean) signature) if they need to do additional cleanup.

Dispose()

Immediately frees any system resources that the object might hold.

C#
public void Dispose();

Implements

Remarks

Wichteg

This type or member is not available in the Internet security zone.

This method can be overridden, but not by this signature. See Dispose(Boolean) for the overridable signature. This parameterless signature is the one required by the interface contract, and it effectively calls the active Dispose(Boolean) implementation with disposing being true.

Applies to

.NET Framework 4.8.1 an aner Versiounen
Produkt Versiounen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Dispose(Boolean)

Immediately frees any system resources that the object might hold.

C#
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected virtual void Dispose(bool disposing);
C#
protected virtual void Dispose(bool disposing);

Parameters

disposing
Boolean

Set to true if called from an explicit disposer and false otherwise.

Attributes

Remarks

Wichteg

This type or member is not available in the Internet security zone.

Derived classes can override this method if they need to do additional cleanup. However, they should also call the base implementation to ensure that all resources are freed. The base implementation does fairly substantial work to free resources that are known to the base class.

If a window is being hosted, it will be destroyed.

The calling thread must be the same as the dispatcher.

Applies to

.NET Framework 4.8.1 an aner Versiounen
Produkt Versiounen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10