AppCapability.RequestAccessAsync 方法

定义

请求访问对象的存储功能和用户。

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

返回

返回 AppCapabilityAccessStatus 枚举。

属性

注解

必须从 UI 线程调用。

适用于