Skip to content

TObject.GetInterfaceWeak

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

Declaration

Source position: objpash.inc line 324

public 
function TObject.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.