RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLayoutWebContent.QueryInterface Method

Returns a reference to a specified interface if the object supports that interface.

Pascal
function QueryInterface(const IID: TGUID; out Obj): HResult; virtual; stdcall;
C++
virtual __fastcall __stdcall HRESULT QueryInterface(const TGUID IID,  Obj);

QueryInterface checks whether the TLayoutWebContent object supports the interface specified by IID. If so, QueryInterface sets the Obj parameter so that it points to an instance of the specified interface and returns 0 to indicate success. 

If the layout object does not support the interface, QueryInterface returns a nonzero error code such as E_NoInterface. 

IID is the desired interface. 

Obj returns a reference to the interface if the TLayoutWebContent object supports it. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!