Datasnap.Win.SConnect.TStreamedConnection._AddRef
Delphi
function _AddRef: Integer; stdcall;
C++
HIDESBASE int __stdcall _AddRef();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Datasnap.Win.SConnect.pas Datasnap.Win.SConnect.hpp |
Datasnap.Win.SConnect | TStreamedConnection |
Description
Called when an application uses a component interface.
Datasnap.Win.SConnect.TStreamedConnection. AddRef inherits from System.Classes.TComponent._AddRef. All content below this line refers to System.Classes.TComponent._AddRef.
Called when an application uses a component interface.
_AddRef is a basic implementation of the IInterface method, _AddRef.
Note: If the component is a wrapper for a COM object, _AddRef calls the _AddRef method of that COM object, and returns the resulting reference count.
In all other cases, _AddRef simply returns –1 and takes no action. This allows the component to implement interfaces where reference counting is not required. More sophisticated components should override _AddRef to implement reference counting.