Share via


IXRDelegate<ArgType, [SenderType]>::Invoke (Compact 2013)

3/28/2014

This method causes a delegate object to call the event handler that is represented by the delegate object.

Syntax

virtual HRESULT STDMETHODCALLTYPE Invoke(
        SenderType* pSender,
        ArgType* EventArg
        ) = 0;

Parameters

  • pSender
    [in] Pointer to an object that describes the source of the event. Either an IXRDependencyObject derived type or a custom data source object.
  • EventArg
    [in] Structure derived from XREventArgs that contains data for the event that was raised by the object in pSender.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This method is called by XAML for Windows Embedded when an object raises an event.

If you use the CreateDelegate helper function to create a delegate for an event handler, the IXRDelegate::Invoke method calls your event handler when an object raises the event.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h,
XRDelegate.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRDelegate<ArgType, [SenderType]>