GpioController.GetControllersAsync(IGpioProvider) GpioController.GetControllersAsync(IGpioProvider) GpioController.GetControllersAsync(IGpioProvider) GpioController.GetControllersAsync(IGpioProvider) GpioController.GetControllersAsync(IGpioProvider) Method

Definition

Gets all the controllers that are connected to the system asynchronously.

public : static IAsyncOperation<IVectorView<GpioController>> GetControllersAsync(IGpioProvider provider)
static IAsyncOperation<IVectorView<GpioController>> GetControllersAsync(IGpioProvider provider) const;
public static IAsyncOperation<IReadOnlyList<GpioController>> GetControllersAsync(IGpioProvider provider)
Public Shared Function GetControllersAsync(provider As IGpioProvider) As IAsyncOperation<IReadOnlyList<GpioController>>(Of IVectorView)
Windows.Devices.Gpio.GpioController.getControllersAsync(provider).done( /* Your success and error handlers */ );

Parameters

provider
IGpioProvider IGpioProvider IGpioProvider

The GPIO provider for the controllers on the system.

Returns

IAsyncOperation<IReadOnlyList<GpioController>> IAsyncOperation<IReadOnlyList<GpioController>> IAsyncOperation<IReadOnlyList<GpioController>>

When the method completes successfully, it returns a list of values that represent the controllers available on the system.

Additional features and requirements

Device family
Windows IoT Extension SDK (introduced v10.0.10586.0) Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v2)