[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Check if a variant supports an interface.
Source position: variants.pp line 115
function VarSupports( |
const V: Variant; |
const IID: TGuid; |
out Intf |
):Boolean; |
const V: Variant; |
const IID: TGuid |
):Boolean; |
V |
|
Variant to check |
IID |
|
Interface identifier |
Intf |
|
Optional argument to receive an instance of the interface. |
True if V supports IID
V |
|
Variant to check |
IID |
|
Interface identifier |
VarSupports checks if the variant V contains an interface (types Unknown, varDispatch) and the interface supports the specified interface IID. If it does, True is returned, False otherwise. If Intf is specified, and the variant supports the requested interface, the interface instance is returned in Intf.
|
Check whether a class or given interface supports an interface |