GpioPin.IsDriveModeSupported(GpioPinDriveMode) GpioPin.IsDriveModeSupported(GpioPinDriveMode) GpioPin.IsDriveModeSupported(GpioPinDriveMode) GpioPin.IsDriveModeSupported(GpioPinDriveMode) GpioPin.IsDriveModeSupported(GpioPinDriveMode) Method

Definition

Gets whether the general-purpose I/O (GPIO) pin supports the specified drive mode.

public : Platform::Boolean IsDriveModeSupported(GpioPinDriveMode driveMode)
bool IsDriveModeSupported(GpioPinDriveMode driveMode) const;
public bool IsDriveModeSupported(GpioPinDriveMode driveMode)
Public Function IsDriveModeSupported(driveMode As GpioPinDriveMode) As bool
var bool = gpioPin.isDriveModeSupported(driveMode);

Parameters

driveMode
GpioPinDriveMode GpioPinDriveMode GpioPinDriveMode

The drive mode that you want to check for support.

Returns

bool bool bool

True if the GPIO pin supports the drive mode that driveMode specifies; otherwise false. If you specify a drive mode for which this method returns false when you call SetDriveMode, SetDriveMode generates an exception.

Additional features and requirements

Capabilities
lowLevel

See also