GpioController.IsPinModeSupported(Int32, PinMode) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检查引脚是否支持特定模式。
public bool IsPinModeSupported(int pinNumber, System.Device.Gpio.PinMode mode);
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
控制器编号方案中的引脚编号。
- mode
- PinMode
要检查的模式。
返回
引脚支持模式时的状态。