Dispose Method (Boolean)

NI-VisaNS .NET Class Library Help for Visual Studio 2010

Edition Date: August 2012

Part Number: 370627F-01

»View Product Info
Download Help (Windows Only)

Session Class See Also


Releases the unmanaged resources used by Session and optionally releases the managed resources associated with this object.

Namespace: NationalInstruments.VisaNS

Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version: 13.0.40.167

Syntax

Visual Basic (Declaration)
Protected Overridable Sub Dispose ( _
	disposing As Boolean _
)

C#
protected virtual void Dispose(
	bool disposing
)

Parameters

disposing
Type: System.Boolean
true (True in Visual Basic) if this method releases managed and unmanaged resources; false (False in Visual Basic) if this method releases only unmanaged resources.

Remarks

The public Dispose method and the finalizer call this method. The public Dispose invokes the protected Dispose method with disposing set to true (True in Visual Basic). The finalizer invokes The public Dispose with disposing set to false (False in Visual Basic).

When you set the disposing parameter to true (True in Visual Basic), this method releases all resources held by managed objects that Session references. This method invokes the The public Dispose method of each referenced object.

See Also

Reference

Session Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful