Condividi tramite


Screenshot.CaptureAsync Metodo

Definizione

Acquisisce uno screenshot della schermata corrente dell'applicazione in esecuzione.

public:
 static System::Threading::Tasks::Task<Microsoft::Maui::Media::IScreenshotResult ^> ^ CaptureAsync();
public static System.Threading.Tasks.Task<Microsoft.Maui.Media.IScreenshotResult> CaptureAsync ();
static member CaptureAsync : unit -> System.Threading.Tasks.Task<Microsoft.Maui.Media.IScreenshotResult>
Public Shared Function CaptureAsync () As Task(Of IScreenshotResult)

Restituisce

Istanza di IScreenshotResult con informazioni sullo screenshot acquisito.

Eccezioni

Viene generata quando IsCaptureSupported è false.

Si applica a