| Keysight.Visa Namespace > VisaSession Class : DiscardEvents Method |
'UsageDim instance As VisaSession Dim eventType As EventType instance.DiscardEvents(eventType)
This method causes loss of event occurrences.
The event occurrences discarded by this method are not available to a session at a later time.
This method does not affect events that have already been delivered to the application.
Client programs should either use the event-related methods DisableEvent, DiscardEvents, EnableEvent, and VisaSession.WaitOnEvent (any overload) with the appropriate eventType, -or- the .NET events which are defined individually for each event stype in the ession class to which they apply. If a calling program uses both mechanisms at the same time, it will receive the event twice, once for each mechanism.
Current with Keysight IO Libraries Suite 18
VisaSession Class
VisaSession Members
WaitOnEvent(EventType) Method
WaitOnEvent(EventType,EventQueueStatus) Method
WaitOnEvent(EventType,Int32) Method
WaitOnEvent(EventType,TimeSpan) Method
WaitOnEvent(EventType,Int32,EventQueueStatus) Method
WaitOnEvent(EventType,TimeSpan,EventQueueStatus) Method