Sign in Join
FPDoc Onlineexperiment

Supports function

In unit sysutils

Check whether a class or given interface supports an interface.

Declaration

pascal
function Supports(const Instance: IInterface; const AClass: TClass; 
 out Obj): Boolean; overload

Description

Supports checks whether Instance supports the interface identified by IID. It returns True if it is supported, False. Optionally, a pointer to the interface is returned to Intf.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.