Method Dispose Dispose() Perform tasks associated with freeing, releasing, or resetting resources. Declaration void Dispose()