Delen via


Radio.RequestAccessAsync Method

Definition

An asynchronous method that retrieves a value indicating what access the current user has to the radio represented by this object. In circumstances where user permission is required to access the radio, this method prompts the user for permission. Consequently, always call this method on the UI thread.

public:
 static IAsyncOperation<RadioAccessStatus> ^ RequestAccessAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<RadioAccessStatus> RequestAccessAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<RadioAccessStatus> RequestAccessAsync();
function requestAccessAsync()
Public Shared Function RequestAccessAsync () As IAsyncOperation(Of RadioAccessStatus)

Returns

An asynchronous status retrieval operation. On successful completion, contains an enumeration value describing the current user's access to this radio.

Attributes

Applies to