Edit

Share via


GpioPin.IsPinModeSupported(PinMode) Method

Definition

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.

Applies to