共用方式為


GpioController.IsPinModeSupported(Int32, PinMode) 方法

定義

檢查針腳是否支援特定模式。

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

要檢查的模式。

傳回

針腳支援模式時的狀態。

適用於