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)

Syntax

'Declaration
Protected Overrides Sub Finalize
protected override void Finalize()
protected:
virtual void Finalize() override
abstract Finalize : unit -> unit 
override Finalize : unit -> unit 
protected override function Finalize()

Remarks

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.

.NET Framework Security

See Also

Reference

Keyboard Class

Microsoft.VisualStudio.TestTools.UITesting Namespace

Dispose