Click or drag to resize
GpioExtensionsSetDriveModeWithFallback Method (GpioPin, GpioPinDriveMode, GpioPinDriveMode)
Sets a drive mode with a fallback mode if the requested mode is not supported.

Namespace: Microsoft.IoT.DeviceCore
Assembly: Microsoft.IoT.DeviceCore (in Microsoft.IoT.DeviceCore.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void SetDriveModeWithFallback(
	this GpioPin pin,
	GpioPinDriveMode driveMode,
	GpioPinDriveMode fallbackMode
)

Parameters

pin
Type: Windows.Devices.GpioGpioPin
The pin to set.
driveMode
Type: Windows.Devices.GpioGpioPinDriveMode
The requested drive mode.
fallbackMode
Type: Windows.Devices.GpioGpioPinDriveMode
The fallback drive mode.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GpioPin. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also