Check whether a class or given interface supports an interface.
Source position: intfh.inc line 19
function Supports( |
const Instance: IInterface; |
const AClass: TClass; |
out Obj |
):Boolean; overload; |
const Instance: IInterface; |
const IID: TGUID; |
out Intf |
):Boolean; overload; |
const Instance: TObject; |
const IID: TGUID; |
out Intf |
):Boolean; overload; |
const Instance: TObject; |
const IID: Shortstring; |
out Intf |
):Boolean; overload; |
const Instance: IInterface; |
const AClass: TClass |
):Boolean; overload; |
const Instance: IInterface; |
const IID: TGUID |
):Boolean; overload; |
const Instance: TObject; |
const IID: TGUID |
):Boolean; overload; |
const Instance: TObject; |
const IID: Shortstring |
):Boolean; overload; |
const AClass: TClass; |
const IID: TGUID |
):Boolean; overload; |
const AClass: TClass; |
const IID: Shortstring |
):Boolean; overload; |
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.
None.
|
Convert a string to a native TGUID type. |