Dispose() Method
Performs application-defined tasks associated with freeing, releasing, or resetting resources.

Syntax

public void Dispose()