System.DelphiInterface.operator ()

From RAD Studio API Documentation
Jump to: navigation, search

C++

__fastcall operator T*() const

Properties

Type Visibility Source Unit Parent
function public systobj.h System DelphiInterface

Description

Returns the underlying interface class.

The T* operator returns the underlying interface pointer. You should use System::DelphiInterface::T* carefully, since it does not provide reference counting support. For example, you may need to increment the reference count on the returned value to make sure that you have a valid reference. This is necessary in situations when the returned value is freed by another thread or by the compiler, or modified by another thread.