TypedEventHandler<TSender,TResult> TypedEventHandler<TSender,TResult> TypedEventHandler<TSender,TResult> TypedEventHandler<TSender,TResult> TypedEventHandler<TSender,TResult> Delegate

Definition

Represents a method that handles general events.

public : delegate void TypedEventHandler<TSender, TResult>(TSender sender, TResult args)
struct TypedEventHandler<TSender, TResult> : winrt::Windows::Foundation::IUnknown
{
   TypedEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> TypedEventHandler(L lambda);
   template <typename F> TypedEventHandler(F* function);
   template <typename O, typename M> TypedEventHandler(O* object, M method);
   void operator()(TSender const& sender, TResult const& args) const;
};
public delegate void TypedEventHandler<TSender, TResult>(TSender sender, TResult args)
Public Delegate Sub TypedEventHandler(Of TSender, TResult)(sender As TSender, args As TResult)
var typedEventHandler = function(sender, args) {

 /* Your code */

}

Parameters

sender
TSender TSender TSender

The event source.

args
TResult TResult TResult

The event data. If there is no event data, this parameter will be null.

Attributes

Windows 10 requirements

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