Udostępnij za pośrednictwem


DataTransferManager.ShareProvidersRequested Event

Definition

An event that is triggered when the share providers are requested. This is used as a callback and providers are added by subscribing to this event and calling ShareProvidersRequestedEventArgs.Providers.Add() in the event handler.

// 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) 

Event Type

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to