Udostępnij za pośrednictwem


GpioChangeReader.PeekNextItem Method

Definition

Retrieves the earlier inserted change record from the reader's buffer, without removing it.

GpioChangeRecord PeekNextItem();
public GpioChangeRecord PeekNextItem();
function peekNextItem()
Public Function PeekNextItem () As GpioChangeRecord

Returns

A GpioChangeRecord structure containing the timestamp and polarity (rising or falling) of the change.

Remarks

The following exception can be thrown by this method:

  • HRESULT_FROM_WIN32(ERROR_NO_MORE_ITEMS) - the reader's buffer is empty.

Applies to