|Download Help (Windows Only)|
Discards event occurrences for the specified event type and mechanism in a session.
Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version: 126.96.36.199
|Visual Basic (Declaration)|
Public Sub DiscardEvent ( _ customEventType As Integer, _ mechanism As EventMechanism _ )
public void DiscardEvent( 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.|
This method is useful to remove event occurrences that an application no longer needs. The discarded event occurrences are not available to the session at a later time.
|Note: This method does not apply to events that have already been delivered to the application.|