FreeOnRelease方法或DelphiVCL.Application.FreeOnRelease用于释放由COM类创建的组件的接口引用。
当组件实现的接口被释放时,FreeOnRelease被调用。FreeOnRelease在内部使用并调用相应的接口方法。应该没有必要直接调用FreeOnRelease。
如何检查DelphiVCL.Application.FreeOnRelease的属性和方法?
让我们用dir()命令浏览DelphiVCL.Application.FreeOnRelease 的所有属性、方法和内置属性。
import DelphiVCL
dir(DelphiVCL.Application.FreeOnRelease)
请看我们的Windows命令提示符中的反应。
你也可以使用print()命令来阅读DelphiVCL.Application.FreeOnRelease 的简短信息。
print(DelphiVCL.Application.FreeOnRelease)
print(DelphiVCL.Application.FreeOnRelease.__doc__)
请看我们的Windows命令提示符中的响应。
查看DelphiVCL,它可以轻松地让你使用Python为Windows建立GUI。
The postThis Is The FreeOnRelease Method Of DelphiVCL.Applicationfirst appeared onPython GUI.