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
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
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 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
Value
unsigned short uint uint

The error code.

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

Message Message Message

A message string for the error.

public : PlatForm::String Message { get; }public string Message { get; }Public ReadOnly Property Message As string
Value
PlatForm::String string string

The message string.

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