GitHub
Download
Forum
Overview
Tutorial
C++ API
General interfaces
Data interfaces
UDomain
UStorage
UObject
AddClass
ClassAddRef
ClassRelease
Close
GetArray
GetAvailableAttributes
GetBsob
GetId
GetLastError
GetLastWriteTime
GetList
GetObjectLink
GetObjectLinkArray
GetValue
HasAttribute
IsAvailableLoaded
IsDirty
Load
LoadFiltered
Remove
SetArray
SetBsob
SetDirty
SetLastError
SetList
SetObjectLink
SetObjectLinkArray
SetValue
Store
Unload
UList
UBitFlagSet
UBitFlagSetSingle
WDomain
WObject
IEventClient
Schema interfaces
Configuration interfaces
Structures
Error codes
C# API
DTDL
DADL
Setup
UObject::ClassAddRef
Increments the reference count on one or more classes.
Syntax
HRESULT
ClassAddRef(
[in]
const
stcClassRefCount*
p_aClass,
[in]
U
INT32
p_ulCount
);
Parameter
p_aClass
[in]
Type:
const stcClassRefCount*
Array of stcClassRefCount structs specifying the classes and counts to increase the references on the object.
p_ulCount
[in]
Type:
UINT32
Number of elements in the p_aClass array.
Return value
S_OK or an error from the
Error Codes
.
Remarks
This function creates an 'external' reference. It is not under the database’s control and needs to be released using
UObject::ClassRelease
or
UStorage::ClassReleaseById
.
Use this function only if you need to store an ObjectId outside of the database and want to keep the object alive during this time.
© 2022 Mobiland AG