GpioPin.IsPinModeSupported(PinMode) Method
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.
Gets whether the general-purpose I/O (GPIO) pin supports the specified pin mode.
public virtual bool IsPinModeSupported (System.Device.Gpio.PinMode pinMode);
abstract member IsPinModeSupported : System.Device.Gpio.PinMode -> bool
override this.IsPinModeSupported : System.Device.Gpio.PinMode -> bool
Public Overridable Function IsPinModeSupported (pinMode As PinMode) As Boolean
Parameters
- pinMode
- PinMode
The pin mode that you want to check for support.
Returns
true
if the GPIO pin supports the pin mode that pinMode specifies; otherwise false.
If you specify a pin mode for which this method returns false
when you call SetPinMode(PinMode), SetPinMode(PinMode) generates an exception.