Skip to content

TObject.GetInterfaceWeak

Get a reference to an interface, not increasing the reference count

Declaration

Source position: objpash.inc line 248

public 
  function GetInterfaceWeak(const iid: TGuid; out obj) : Boolean;

Description

GetInterfaceWeak performs the same function as Getinterface , but unlike the latter, it will not increase the reference count of the interface.

See also

Name Description
TObject.GetInterface Return a reference to an interface