Jaa


MediaCaptureFailedEventArgs Class

Definition

Provides data for the MediaCapture.Failed event.

public ref class MediaCaptureFailedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class MediaCaptureFailedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class MediaCaptureFailedEventArgs
Public NotInheritable Class MediaCaptureFailedEventArgs
Inheritance
Object Platform::Object IInspectable MediaCaptureFailedEventArgs
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
backgroundMediaRecording microphone webcam

Remarks

This object is not instantiated directly, it is created by the MediaCapture.Failed event and is returned as an argument to the MediaCaptureFailedEventHandler delegate.

Note

This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Properties

Code

The error code of the error that caused the event.

Message

A message string for the error.

Applies to