Jaa


RemoteSystem.RequestAccessAsync Method

Definition

Gets the status of the calling app's access to the Remote Systems feature. This method should always be called before an app attempts to discover or otherwise interact with remote systems.

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

Returns

An asynchronous operation that returns the status of access.

Attributes

Windows requirements

App capabilities
remoteSystem

Remarks

This method must be called from the UI thread.

Some of the conditions that are tested by calls to this method are:

  • The application has added the remoteSystem capability.
  • Remote Systems scenarios are allowed by the Group Policy setting (HKLM\Software\Policies\Microsoft\Windows\System!EnableCdp).
  • Remote Systems scenarios are allowed by the mobile device management (MDM) policy setting (Connectivity/AllowConnectedDevices).

Applies to