美文网首页
TInterfacedPersistent::operator

TInterfacedPersistent::operator

作者: 玄坴 | 来源:发表于2020-05-20 20:36 被阅读0次

C++ Builder 参考手册TInterfacedPersistentoperator _di_IInterface


头文件:#include <System.Classes.hpp>
命名空间:System::Classes
类:TInterfacedPersistent
访问权限:protected:
函数原型:

operator System::_di_IInterface()
{
    System::_di_IInterface intf;
    this->GetInterface(intf);
    return intf;
}

System::Classes::TInterfacedPersistent::operator _di_IInterface 是 System::Classes::TInterfacedPersistent 的类型转换操作符,转为接口。

参数:

无。

返回值:

_di_IInterface 类型的接口。

  • 类型转换操作符,把当前组件转为 _di_IInterface 类型时使用;
  • 相当于使用 GetInterface 方法获取接口。

参考:


C++ Builder 参考手册TInterfacedPersistentoperator _di_IInterface

相关文章

网友评论

      本文标题:TInterfacedPersistent::operator

      本文链接:https://www.haomeiwen.com/subject/wviuwhtx.html