System.Classes.TComponent.IsImplementorOf

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function IsImplementorOf(const I: IInterface): Boolean;

C++

bool __fastcall IsImplementorOf(const System::_di_IInterface I);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

Indicates whether the component implements a specified interface.

Call IsImplementorOf to determine whether the component (or, if the component aggregates its interface with other components, whether the controlling component) supports the interface specified by I. IsImplementorOf is similar to the QueryInterface method, but it can handle a request for a nil (Object Pascal) or NULL (C++) interface, and it does not return an interface pointer.

The streaming system that loads and saves components uses IsImplementorOf to resolve property values that are interfaces.

See Also