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. |