GpioController.IsPinModeSupported(Int32, PinMode) Method
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.
Checks if a pin supports a specific mode.
C#
public bool IsPinModeSupported (int pinNumber, System.Device.Gpio.PinMode mode);
C#
public virtual bool IsPinModeSupported (int pinNumber, System.Device.Gpio.PinMode mode);
member this.IsPinModeSupported : int * System.Device.Gpio.PinMode -> bool
abstract member IsPinModeSupported : int * System.Device.Gpio.PinMode -> bool
override this.IsPinModeSupported : int * System.Device.Gpio.PinMode -> bool
Public Function IsPinModeSupported (pinNumber As Integer, mode As PinMode) As Boolean
Public Overridable Function IsPinModeSupported (pinNumber As Integer, mode As PinMode) As Boolean
- pinNumber
- Int32
The pin number in the controller's numbering scheme.
- mode
- PinMode
The mode to check.
The status if the pin supports the mode.
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |