FireDAC.Stan.Factory.TFDObject.QueryInterface

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function QueryInterface(const IID: TGUID; out Obj): HResult; stdcall;

C++

HIDESBASE HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);

Properties

Type Visibility Source Unit Parent
function protected
FireDAC.Stan.Factory.pas
FireDAC.Stan.Factory.hpp
FireDAC.Stan.Factory TFDObject

Description

Implements the IInterfaceQueryInterface method.

FireDAC.Stan.Factory.TFDObject.QueryInterface inherits from System.TInterfacedObject.QueryInterface. All content below this line refers to System.TInterfacedObject.QueryInterface.

Implements the IInterfaceQueryInterface method.

Do not call the protected QueryInterface method directly. QueryInterface is called through IInterface to obtain an interface pointer for the interface identified by the IID parameter. If the object supports the requested interface, it is returned in the Obj parameter and QueryInterface returns S_OK. If the object does not support the interface, QueryInterface returns E_NOINTERFACE.

If QueryInterface successfully returns an interface pointer, it automatically increments the reference count.

See Also