MediaCaptureFailedEventArgs MediaCaptureFailedEventArgs MediaCaptureFailedEventArgs MediaCaptureFailedEventArgs Class

Definition

Provides data for the MediaCapture.Failed event.

public : sealed class 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

The error code of the error that caused the event.

public : unsigned int Code { get; }
public uint Code { get; }
Public ReadOnly Property Code As uint
var uint = mediaCaptureFailedEventArgs.code;
Value
unsigned int 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 backgroundMediaRecording 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
var string = mediaCaptureFailedEventArgs.message;
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 backgroundMediaRecording microphone