RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DelphiInterface::= Operator (DelphiInterface<ANOTHERINTF> &)
Pascal
operator =(var rhs: DelphiInterface<ANOTHERINTF>);
operator =(var rhs: DelphiInterface<T>);
operator =(var rhs: T);
C++
template <class ANOTHERINTF> __fastcall DelphiInterface<T>& operator =(DelphiInterface<ANOTHERINTF> & rhs);
__fastcall DelphiInterface<T>& operator =(DelphiInterface<T> & rhs);
__fastcall DelphiInterface<T>& operator =(T * rhs);

The assignment System::DelphiInterface::= assigns a value to the underlying interface from an interface pointer of the underlying type or from another System::DelphiInterface::DelphiInterface object that wraps the same interface type. 

This System::DelphiInterface::= manages all reference counting issues. That is, it decrements the reference count on the current interface (if any) before making the assignment and increments the reference count on the newly assigned interface (if any). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!