RemoteSystem.RequestAccessAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro