-api-id | -api-type |
---|---|
M:Windows.Devices.Gpio.GpioChangeReader.#ctor(Windows.Devices.Gpio.GpioPin,System.Int32) |
winrt method |
Creates a new GpioChangeReader associated with the specified pin and with the specified minimum capacity for change records. Only a single GpioChangeReader may be associated with a pin at any given time.
The pin on which to read changes. The pin must have been opened in Exclusive mode, and cannot be associated with another change reader.
The minimum number of change records that the reader must be able to hold.
The following exceptions can be thrown by this method:
- E_POINTER - The pin passed in is null.
- HRESULT_FROM_WIN32(ERROR_SHARING_VIOLATION) - The pin is already associated with a change reader. That change reader must be disposed before the pin can be associated with a new change reader.
- E_ACCESSDENIED - The pin is not opened in Exclusive mode.