UninstallCustomEventHandler Method

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


Uninstalls a handler for a nonstandard or new event type that was installed with InstallCustomEventHandler.

Namespace: NationalInstruments.VisaNS

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

Syntax

Visual Basic (Declaration)
Public Sub UninstallCustomEventHandler ( _
	customEventType As Integer, _
	handler As VisaEventHandler _
)

C#
public void UninstallCustomEventHandler(
	int customEventType,
	VisaEventHandler handler
)

Parameters

customEventType
Type: System.Int32
Custom logical event identifier.
handler
Type: NationalInstruments.VisaNS.VisaEventHandler
VisaEventHandler that was installed with InstallCustomEventHandler.

Exceptions

ExceptionCondition
VisaException The NI-VISA driver returned an error as a result of calling this method.
ArgumentException

The customEventType is not recognized by the driver.

-or-

The handler delegate is invalid.

DllNotFoundException The NI-VISA driver library cannot be found.
EntryPointNotFoundException A required operation in the NI-VISA driver library cannot be found.
ObjectDisposedException This member is called after the Dispose method is called directly from code or indirectly through a finalizer.

Remarks

Note: This method is provided only for extensibility. You should use this method if the event type that you are looking for does not appear on the API.
Calling this method uninstalls a handler for an event type that was previously installed with InstallCustomEventHandler. If you do not call this method manually, it is called automatically for every handler that you installed. This automatic call occurs for every event type when the session is disposed.

See Also

Reference

Session Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful