Keyboard.Finalize Method

Releases unmanaged resources and performs other cleanup operations before this Keyboard instance is reclaimed by garbage collection.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

protected override void Finalize()

The Finalize method calls the Dispose method of the Keyboard class to clean up resources. Because the Dispose method calls the SuppressFinalize method, the Finalize method is called only when the inherited class instance fails to call Dispose.