Permissions.BasePlatformPermission.RequestAsync 方法

定义

向用户请求此应用程序的权限。

public:
 override System::Threading::Tasks::Task<Microsoft::Maui::ApplicationModel::PermissionStatus> ^ RequestAsync();
public override System.Threading.Tasks.Task<Microsoft.Maui.ApplicationModel.PermissionStatus> RequestAsync ();
override this.RequestAsync : unit -> System.Threading.Tasks.Task<Microsoft.Maui.ApplicationModel.PermissionStatus>
Public Overrides Function RequestAsync () As Task(Of PermissionStatus)

返回

一个 PermissionStatus 指示此权限请求的结果的值。

适用于