Delphi What Is The GetInterfaceTable Method in DelphiVCL.Application?

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
What Is The GetInterfaceTable Method in DelphiVCL.Application?
By Muhammad Azizul Hakim October 14, 2021

Use the GetInterfaceTable method or DelphiVCL.Application.GetInterfaceTable to return a pointer to a structure containing all of the interfaces implemented by a given class.

GetInterfaceTable returns the interface entries for the class. This list contains only interfaces implemented by this class, not its ancestors. To find the ancestor list, iteratively call ClassParent and then call GetInterfaceTable on the value it returns. To find the entry for a specific interface, use the GetInterfaceEntry method instead.

Examining the properties and methods of DelphiVCL.Application.GetInterfaceTable​

Let’s browse all the properties and methods of the DelphiVCL.Application.GetInterfaceTable using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.GetInterfaceTable)
See the responses in our Windows command prompt:
1634194678075.png
You can also read short information about the DelphiVCL.Application.GetInterfaceTable using the print() command:
Python:
print(DelphiVCL.Application.GetInterfaceTable)
print(DelphiVCL.Application.GetInterfaceTable.__doc__)
See the responses in our Windows command prompt:
1634194708956.png