MediaCaptureFailedEventArgs 类

定义

MediaCapture.Failed 事件提供数据。

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
继承
Object Platform::Object IInspectable MediaCaptureFailedEventArgs
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
backgroundMediaRecording microphone webcam

注解

此对象不直接实例化,它由 MediaCapture.Failed 事件创建,并作为参数返回到 MediaCaptureFailedEventHandler 委托。

注意

此类不敏捷,这意味着需要考虑其线程模型和封送处理行为。 有关详细信息,请参阅线程和封送处理 (C++/CX) 和使用多线程环境中的Windows 运行时对象 (.NET)

属性

Code

导致事件的错误的错误代码。

Message

错误的消息字符串。

适用于