ServiceRequestedEventHandler 委托

定义

表示在恢复操作完成时处理 MediaProtectionManager 传递的数据的方法。

public delegate void ServiceRequestedEventHandler(MediaProtectionManager ^ sender, ServiceRequestedEventArgs ^ e);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3537277114, 51913, 18657, 149, 192, 211, 132, 149, 168, 64, 85)]
class ServiceRequestedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3537277114, 51913, 18657, 149, 192, 211, 132, 149, 168, 64, 85)]
public delegate void ServiceRequestedEventHandler(MediaProtectionManager sender, ServiceRequestedEventArgs e);
var serviceRequestedEventHandlerHandler = function(sender, e){
/* Your code */
}
Public Delegate Sub ServiceRequestedEventHandler(sender As MediaProtectionManager, e As ServiceRequestedEventArgs)

参数

sender
MediaProtectionManager

包含正在请求服务的 MediaProtectionManager 对象。

e
ServiceRequestedEventArgs

包含请求服务时 MediaProtectionManager 对象的事件数据。

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

适用于