[]
Releases all resources used by this DeviceContext object.
public void Dispose()
Public Sub Dispose()
Calling Dispose allows the resources used by the DeviceContext object to be reallocated for other purposes.
Releases the unmanaged resources used by the DeviceContext and optionally releases the managed resources.
protected virtual void Dispose(bool disposing)
Protected Overridable Sub Dispose(disposing As Boolean)
| Type | Name | Description |
|---|---|---|
| bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |