Share via


Generator.Dispose Method

Releases all resources used by the Generator class.

Namespace:  Microsoft.VisualStudio.TeamSystem.Data.DataGenerator
Assembly:  Microsoft.VisualStudio.TeamSystem.Data (in Microsoft.VisualStudio.TeamSystem.Data.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As Generator

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()

Implements

IDisposable.Dispose()

Remarks

Call Dispose() when you are finished using the Generator. The Dispose() method leaves the Generator in an unusable state. After calling Dispose(), you must release all references to the Generator so the garbage collector can reclaim the memory that the Generator was occupying. 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 Generator. Otherwise, the resources it is using will not be freed until the garbage collector calls the Generator object's Finalize method.

Permissions

See Also

Reference

Generator Class

Generator Members

Dispose Overload

Microsoft.VisualStudio.TeamSystem.Data.DataGenerator Namespace

Other Resources

Creating Custom Data Generators

An Overview of Data Generator Extensibility

Specifying Details of Data Generation for a Column