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

VarSupports

Check if a variant supports an interface.

Declaration

Source position: variants.pp line 122

function VarSupports(

  const V: Variant;

  const IID: TGUID;

  out Intf

):Boolean;

function VarSupports(

  const V: Variant;

  const IID: TGUID

):Boolean;

Arguments

V

  

Variant to check.

IID

  

Interface identifier.

Intf

  

Optional argument to receive an instance of the interface.

Function result

True if V supports IID.

Arguments

V

  

Variant to check.

IID

  

Interface identifier.

Description

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.

See also

#rtl.sysutils.Supports

  

Check whether a class or given interface supports an interface.


Documentation generated on: Dec 26 2024