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


Return a reference to an interface


Source position: objpash.inc line 231

public function TObject.GetInterface(

  const iid: TGuid;

  out obj


function TObject.GetInterface(

  const iidstr: shortstring;

  out obj



GetInterface scans the interface tables and returns a reference to the interface iid. The reference is stored in Obj which should be an interface reference. It returns True if the interface was found, False if not.

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


If no interface was found, False is returned.

See also



Return an interface based on its GUID

Documentation generated on: Sep 28 2017