Share via


Radio.GetRadiosAsync Method

Definition

A static, asynchronous method that retrieves a collection of Windows.Devices.Radios.Radio objects representing radio devices which existed on the system at the time the program launched. Additions or removals of radios are ignored by subsequent calls.

public:
 static IAsyncOperation<IVectorView<Radio ^> ^> ^ GetRadiosAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<Radio>> GetRadiosAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<Radio>> GetRadiosAsync();
function getRadiosAsync()
Public Shared Function GetRadiosAsync () As IAsyncOperation(Of IReadOnlyList(Of Radio))

Returns

An asynchronous retrieval operation. When the operation is complete, contains a list of Windows.Devices.Radios.Radio objects describing radios that existed at the time the program launched.

Attributes

Remarks

When called from a UWP app, there is no architecture requirement. This method will work on the native architecture, as well as x86 architecture on x64 or ARM64 architectures.

When this method is called from a desktop application (Win32), it will retrieve radio instances only when the application is natively compiled for the target architecture (in other words, when the application matches the computer architecture; so an x86 application running on an x64 architecture computer won't see any radio instances).

Applies to