共用方式為


Flashlight.IsSupportedAsync 方法

定義

檢查手電筒是否可用,並可開啟或關閉。

public:
 static System::Threading::Tasks::Task<bool> ^ IsSupportedAsync();
public static System.Threading.Tasks.Task<bool> IsSupportedAsync ();
static member IsSupportedAsync : unit -> System.Threading.Tasks.Task<bool>
Public Shared Function IsSupportedAsync () As Task(Of Boolean)

傳回

true 當手電筒筒可供使用,或 false 未使用時

適用於