System.IInterface.Supports

From RAD Studio API Documentation
Jump to: navigation, search

C++

bool /*__stdcall*/ Supports(DelphiInterface<T>& smartIntf)

Properties

Type Visibility Source Unit Parent
function public sysmac.h System IInterface

Description

Indicates whether a given interface supports a specific (another) interface.

Supports makes a query to get the interface specified by the smartIntf parameter. Use Supports on an existing interface instance to obtain an instance to another interface. The return value is True in case the query is successful (and the smartIntf parameter is set), or False otherwise.

Note: If the specified interface is found, the reference counter of the underlying object is incremented accordingly.

See Also

Code Examples