Datasnap.Win.SConnect.TStreamedConnection._AddRef
[–] Properties | |
---|---|
Type: function | |
Visibility: protected | |
Source: Datasnap.Win.SConnect.pas Datasnap.Win.SConnect.hpp
| |
Unit: Datasnap.Win.SConnect | |
Parent: TStreamedConnection |
Delphi
function _AddRef: Integer; stdcall;
C++
HIDESBASE int __stdcall _AddRef();
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.