AlarmApplicationManager.RequestAccessAsync 方法

定义

请求用户设置警报的权限。

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

返回

此方法在完成后返回 AlarmAccessStatus 值。

属性

适用于