Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

Supports

Check whether a class or given interface supports an interface.

Declaration

Source position: intfh.inc line 19

function Supports(

  const Instance: IInterface;

  const AClass: TClass;

  out Obj

):Boolean; overload;

function Supports(

  const Instance: IInterface;

  const IID: TGuid;

  out Intf

):Boolean; overload;

function Supports(

  const Instance: TObject;

  const IID: TGuid;

  out Intf

):Boolean; overload;

function Supports(

  const Instance: TObject;

  const IID: Shortstring;

  out Intf

):Boolean; overload;

function Supports(

  const Instance: IInterface;

  const AClass: TClass

):Boolean; overload;

function Supports(

  const Instance: IInterface;

  const IID: TGuid

):Boolean; overload;

function Supports(

  const Instance: TObject;

  const IID: TGuid

):Boolean; overload;

function Supports(

  const Instance: TObject;

  const IID: Shortstring

):Boolean; overload;

function Supports(

  const AClass: TClass;

  const IID: TGuid

):Boolean; overload;

function Supports(

  const AClass: TClass;

  const IID: Shortstring

):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

StringToGUID

  

Convert a string to a native TGUID type.


Documentation generated on: Oct 27 2024