IEventHandler<T>::Invoke method

Invokes the method that handles an event with event data of type T.

Syntax

HRESULT Invoke(
  [in] IInspectable *sender,
  [in] T            args
);

Parameters

  • sender [in]
    The event source.

  • args [in]
    The event data.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.Collections.h

See also

IEventHandler<T>