MediaCaptureFailedEventHandler 委托
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示将处理 MediaCapture.Failed 事件的方法。
public delegate void MediaCaptureFailedEventHandler(MediaCapture ^ sender, MediaCaptureFailedEventArgs ^ errorEventArgs);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(538243067, 23768, 20232, 163, 20, 13, 54, 13, 165, 159, 20)]
class MediaCaptureFailedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(538243067, 23768, 20232, 163, 20, 13, 54, 13, 165, 159, 20)]
public delegate void MediaCaptureFailedEventHandler(MediaCapture sender, MediaCaptureFailedEventArgs errorEventArgs);
var mediaCaptureFailedEventHandlerHandler = function(sender, errorEventArgs){
/* Your code */
}
Public Delegate Sub MediaCaptureFailedEventHandler(sender As MediaCapture, errorEventArgs As MediaCaptureFailedEventArgs)
参数
- sender
- MediaCapture
引发事件的 MediaCapture 对象。
- errorEventArgs
- MediaCaptureFailedEventArgs
包含有关事件的信息的参数。
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
应用功能 |
backgroundMediaRecording
microphone
webcam
|