Permissions.BasePlatformPermission.CheckStatusAsync 方法

定义

检索此权限的当前状态。

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

返回

一个 PermissionStatus 值,该值指示此权限的当前状态。

适用于