共用方式為


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 ,表示這個許可權的目前狀態。

適用於