GpioChangeReader Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GpioChangeReader(GpioPin) |
Creates a new GpioChangeReader associated with the specified pin. Only a single GpioChangeReader may be associated with a pin at any given time. |
GpioChangeReader(GpioPin, Int32) |
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. |
GpioChangeReader(GpioPin)
Creates a new GpioChangeReader associated with the specified pin. Only a single GpioChangeReader may be associated with a pin at any given time.
public:
GpioChangeReader(GpioPin ^ pin);
GpioChangeReader(GpioPin const& pin);
public GpioChangeReader(GpioPin pin);
function GpioChangeReader(pin)
Public Sub New (pin As GpioPin)
Parameters
- pin
- GpioPin
The pin on which to read changes. The pin must have been opened in Exclusive mode, and cannot be associated with another change reader.
Remarks
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.
Applies to
GpioChangeReader(GpioPin, Int32)
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.
public:
GpioChangeReader(GpioPin ^ pin, int minCapacity);
GpioChangeReader(GpioPin const& pin, int const& minCapacity);
public GpioChangeReader(GpioPin pin, int minCapacity);
function GpioChangeReader(pin, minCapacity)
Public Sub New (pin As GpioPin, minCapacity As Integer)
Parameters
- pin
- GpioPin
The pin on which to read changes. The pin must have been opened in Exclusive mode, and cannot be associated with another change reader.
- minCapacity
-
Int32
int
The minimum number of change records that the reader must be able to hold.
Remarks
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.