Dela via


AppCaptureRecordOperation Class

Definition

Represents an app capture record operation.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

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
Inheritance
Object Platform::Object IInspectable AppCaptureRecordOperation
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.Media.Capture.AppCaptureContract (introduced in v4.0)
App capabilities
appCaptureSettings

Remarks

This API may throw an error if the background service has shut down due to idle timeout.

Properties

Duration

Gets the duration of the recording operation.

ErrorCode

Gets the error code associated with the recording operation.

File

Gets the file associated with the recording operation.

IsFileTruncated

Gets a value indicating whether the file associated with the recording operation is truncated.

State

Gets a value specifying the current state of the app capture record operation.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

Methods

StopRecording()

Stops the app capture record operation.

Events

DurationGenerated

Occurs when the recording state changes due to the duration of the recording operation.

FileGenerated

Occurs when the recording state changes due to the file associated with the recording operation.

StateChanged

Occurs when the state of the app capture record operation changes.

Applies to