Media​Capture​Failed​Event​Args Media​Capture​Failed​Event​Args Media​Capture​Failed​Event​Args Media​Capture​Failed​Event​Args Class

Definition

Provides data for the MediaCapture.Failed event.

public : sealed class MediaCaptureFailedEventArgs : IMediaCaptureFailedEventArgspublic sealed class MediaCaptureFailedEventArgs : IMediaCaptureFailedEventArgsPublic NotInheritable Class MediaCaptureFailedEventArgs Implements IMediaCaptureFailedEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
webcam 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

The error code of the error that caused the event.

public : unsigned short Code { get; }public uint Code { get; }Public ReadOnly Property Code As uint// You can use this property in JavaScript.
Value
unsigned short uint uint uint

The error code.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
webcam microphone

Message Message Message Message

A message string for the error.

public : PlatForm::String Message { get; }public string Message { get; }Public ReadOnly Property Message As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The message string.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
webcam microphone