System.Variants.TInvokeableVariantType.DispInvoke

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DispInvoke(Dest: PVarData; [Ref] const Source: TVarData;  CallDesc: PCallDesc; Params: Pointer); override;

C++

virtual void __fastcall DispInvoke(PVarData Dest, const TVarData &Source, System::PCallDesc CallDesc, void * Params);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Variants.pas
System.Variants.hpp
System.Variants TInvokeableVariantType

Description

Invokes a method call by dispatching it to the appropriate TInvokeableVariantType method.

When the application tries to call a method, set a property, or read a property using a Variant of the custom Variant type, the system automatically generates a call to DispInvoke. TInvokeableVariantType responds by generating a call to the GetProperty, SetProperty, DoProcedure, or DoFunction method, as appropriate.

Dest is a TVarData record that receives the return value of any function calls.

Source is the TVarData record that holds the data from the custom Variant whose property or method was invoked.

CallDesc identifies the method that was called, including the type and number of its arguments.

Params points to an array of parameter values that were passed in the method call.

See Also