DataTransferManager.ShareProvidersRequested 事件

定义

请求共享提供程序时触发的事件。 它用作回调,通过订阅此事件并在事件处理程序中调用 ShareProvidersRequestedEventArgs.Providers.Add () 来添加提供程序。

// Register
event_token ShareProvidersRequested(TypedEventHandler<DataTransferManager, ShareProvidersRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void ShareProvidersRequested(event_token const* cookie) const;

// Revoke with event_revoker
DataTransferManager::ShareProvidersRequested_revoker ShareProvidersRequested(auto_revoke_t, TypedEventHandler<DataTransferManager, ShareProvidersRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<DataTransferManager,ShareProvidersRequestedEventArgs> ShareProvidersRequested;
function onShareProvidersRequested(eventArgs) { /* Your code */ }
dataTransferManager.addEventListener("shareprovidersrequested", onShareProvidersRequested);
dataTransferManager.removeEventListener("shareprovidersrequested", onShareProvidersRequested);
- or -
dataTransferManager.onshareprovidersrequested = onShareProvidersRequested;
Public Custom Event ShareProvidersRequested As TypedEventHandler(Of DataTransferManager, ShareProvidersRequestedEventArgs) 

事件类型

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于