AppCaptureServices 類別

定義

管理應用程式擷取的狀態。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫這些 API 會在執行時間失敗。

public ref class AppCaptureServices sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Capture.AppCaptureContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppCaptureServices final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Capture.AppCaptureContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppCaptureServices
Public NotInheritable Class AppCaptureServices
繼承
Object Platform::Object IInspectable AppCaptureServices
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.15063.0 引進)
API contract
Windows.Media.Capture.AppCaptureContract (已於 v4.0 引進)
應用程式功能
appCaptureServices appCaptureSettings

備註

如果背景服務因為閒置逾時而關閉,此 API 可能會擲回錯誤。

屬性

CanCapture

取得值,指定是否可以執行應用程式擷取。

State

取得值,指定應用程式擷取服務的目前狀態。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫這些 API 會在執行時間失敗。

方法

Record()

起始應用程式擷取記錄作業。

RecordTimeSpan(DateTime, TimeSpan)

起始應用程式擷取記錄作業,從指定的時間開始,在指定的期間內。

適用於