API:System.Procedure.GetCallType

From RAD Studio API Documentation
Jump to: navigation, search

C++

Byte      GetCallType()   const { return DISPATCH_METHOD;}

Properties

Type Visibility Source Unit Parent
function public sysvari.h System Procedure

Description

Indicates the type of the interface method represented by the AutoCmd object.

System.Procedure.GetCallType inherits from System.AutoCmd.GetCallType. All content below this line refers to System.AutoCmd.GetCallType.

Indicates the type of the interface method represented by the AutoCmd object.

Call GetCallType to determine the type of flag needed to call the method represented by AutoCmd using the IDispatch::Invoke method of the Automation interface. GetCallType returns DISPATCH_PROPERTYGET if the AutoCmd object represents a property getter, DISPATCH_PROPERTYSET if it represents a property setter, and DISPATCH_METHOD if it represents any other method type.

GetCallType is declared as a pure virtual method. Descendant classes, which represent specific types of interface methods, override this method to return the appropriate value.