Dispose(bool) method

Frees the resources associated with the object.

Visual Basic syntax

Protected Overrides Sub Dispose (ByVal disposing As Boolean)

C# syntax

protected override void Dispose (bool disposing)