|Download Help (Windows Only)|
Disables notification of the specified event type on the specified event-handling mechanism.
Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version: 220.127.116.11
|Visual Basic (Declaration)|
Public Sub DisableEvent ( _ customEventType As Integer, _ mechanism As EventMechanism _ )
public void DisableEvent( int customEventType, EventMechanism mechanism )
|VisaException||The NI-VISA driver returned an error as a result of calling this method.|
Invalid mechanism specified.
Specified event type is not supported by the resource.
|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.|
|Note:This method is provided for extensibility only and should not be used unless the event you want to enable is unavailable in the API.|
Specify 0x3FFF7FFF for the customEventType parameter to disable all of the events that had previously been enabled. Specify Queue to stop the session from receiving queued events. Specify Handler to stop applications from receiving callback events.
|Note: Callingprevents future events from being raised on the session. When the method returns to the application, a callback might be active, such as on another thread. You can call from within the callback, but it is not recommended.|