MediaCaptureFailedEventArgs MediaCaptureFailedEventArgs MediaCaptureFailedEventArgs MediaCaptureFailedEventArgs MediaCaptureFailedEventArgs Class

Definition

Provides data for the MediaCapture.Failed event.

public : sealed class MediaCaptureFailedEventArgs : IMediaCaptureFailedEventArgs
struct winrt::Windows::Media::Capture::MediaCaptureFailedEventArgs : IMediaCaptureFailedEventArgs
public sealed class MediaCaptureFailedEventArgs : IMediaCaptureFailedEventArgs
Public NotInheritable Class MediaCaptureFailedEventArgs Implements IMediaCaptureFailedEventArgs
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
webcam backgroundMediaRecording microphone

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 Code Code Code Code

The error code of the error that caused the event.

Message Message Message Message Message

A message string for the error.