System.IUnknown.Release
C++
virtual ULONG STDMETHODCALLTYPE Release( void) = 0;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | unknwn.h | System | IUnknown |
Description
Decrements the reference count for this interface.
For most implementations, Release decrements the reference count for the interface and returns the new reference count. When the reference count drops to zero, the object is automatically freed.
Note: Implementation objects can implement Release so that it does not perform any reference counting. For such objects, the reference count never drops to zero and the object is not automatically freed. In these cases, it is the application's responsibility to free the object.