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 const & provider);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<GpioController>> GetControllersAsync(IGpioProvider provider);
function getControllersAsync(provider)
Public Shared Function GetControllersAsync (provider As IGpioProvider) As IAsyncOperation(Of IReadOnlyList(Of GpioController))

Parameters

provider
IGpioProvider

The GPIO provider for the controllers on the system.

Note

For info about providers, see the note at the beginning of the Windows.Devices.Gpio.Provider namespace topic.

Returns

IAsyncOperation<IReadOnlyList<GpioController>>

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

Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
Windows IoT Extension SDK (introduced in 10.0.10586.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v2.0)

Applies to