DataProviderHandler DataProviderHandler DataProviderHandler DataProviderHandler DataProviderHandler Delegate

Definition

Provides data when the target app requests it, instead of including the data in the DataPackage ahead of time. [ DataProviderHandler is used when the source app wants to avoid unnecessary work that is resource intensive, such as performing format conversions.

public : delegate void DataProviderHandler(DataProviderRequest request)
struct DataProviderHandler : winrt::Windows::Foundation::IUnknown
{
   DataProviderHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> DataProviderHandler(L lambda);
   template <typename F> DataProviderHandler(F* function);
   template <typename O, typename M> DataProviderHandler(O* object, M method);
   void operator()(winrt::Windows::ApplicationModel::DataTransfer::DataProviderRequest const& request) const;
};
public delegate void DataProviderHandler(DataProviderRequest request)
Public Delegate Sub DataProviderHandler(request As DataProviderRequest)
var dataProviderHandler = function(request) {

 /* Your code */

}

Parameters

request
DataProviderRequest DataProviderRequest DataProviderRequest

Contains the data that the user wants to share.

Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)