[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

TObject.GetInterface

Return a reference to an interface

Declaration

Source position: objpash.inc line 157

public function TObject.GetInterface(

  const iid: TGuid;

  out obj

):Boolean;

Description

GetInterfacescans the interface tables and returns a reference to the interface iid. The reference is stored in Objwhich should be an interface reference. It returns Trueif the interface was found, Falseif not.

The reference count of the interface is increased by this call.

Errors

If no interface was found, Falseis returned.

See also

GetInterfaceByStr