共用方式為


MediaCaptureFailedEventHandler 代理人

定義

表示將處理 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

適用於