Vcl.OleServer.TOleServer.InvokeEvent
Delphi
procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); virtual;
C++
virtual void __fastcall InvokeEvent(int DispID, System::Win::Comobj::TOleVariantArray &Params);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.OleServer.pas Vcl.OleServer.hpp |
Vcl.OleServer | TOleServer |
Description
Dispatches an event from the COM server to the appropriate event handler.
InvokeEvent descendants use InvokeEvent internally to link their event handlers to events on the COM server.
DispID is the dispatch ID for the appropriate event handler.
Params passes the parameters of the event handler as an array of OleVariants.
As implemented in InvokeEvent, InvokeEvent does nothing, because InvokeEvent has no events. Descendants that surface events from a COM server override this method so that the event sink specified by EventDispatch can pass events on to the appropriate event handlers.