次の方法で共有


ITypedEventHandler<TSender, TArgs>::Invoke method

Invokes the method that handles an event from a sender of type TSender 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

IDL

Windows.foundation.collections.idl

See also

ITypedEventHandler<TSender, TArgs>