AppCaptureRecordOperation 類別

定義

表示應用程式擷取記錄作業。

注意

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

public ref class AppCaptureRecordOperation 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 AppCaptureRecordOperation 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 AppCaptureRecordOperation
Public NotInheritable Class AppCaptureRecordOperation
繼承
Object Platform::Object IInspectable AppCaptureRecordOperation
屬性

Windows 需求

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

備註

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

屬性

Duration

取得錄製作業的持續時間。

ErrorCode

取得與錄製作業相關聯的錯誤碼。

File

取得與錄製作業相關聯的檔案。

IsFileTruncated

取得值,指出與錄製作業相關聯的檔案是否遭到截斷。

State

取得值,指定應用程式擷取記錄作業的目前狀態。

注意

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

方法

StopRecording()

停止應用程式擷取記錄作業。

事件

DurationGenerated

發生于錄製狀態因錄製作業持續時間而變更時。

FileGenerated

發生于錄製狀態因為與錄製作業相關聯的檔案而變更時。

StateChanged

發生于應用程式擷取記錄作業的狀態變更時。

適用於