ErrorManager.Dispose Method

Releases all resources that are used by the current instance of the ErrorManager class.

Namespace:  Microsoft.Data.Schema
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Sub Dispose
public void Dispose()
public:
virtual void Dispose() sealed
abstract Dispose : unit -> unit 
override Dispose : unit -> unit 
public final function Dispose()

Implements

IDisposable.Dispose()

Remarks

Call Dispose when you finish using the ErrorManager. The Dispose method leaves the ErrorManager in an unusable state. After you call Dispose, you must release all references to the ErrorManager. This is so that the garbage collector can reclaim the memory occupied by the ErrorManager.

For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

Note   Always call Dispose before you release your last reference to the ErrorManager. Otherwise, the resources it uses will not be freed until the garbage collector calls the Finalize method of the ErrorManager object.

.NET Framework Security

See Also

Reference

ErrorManager Class

Microsoft.Data.Schema Namespace