GitHub
Download
Forum
Overview
Tutorial
C++ API
C# API
General interfaces
Data interfaces
UDomain
UStorage
AbortActionGroup
AddClass
ClassAddRef
ClassAddRefById
ClassRelease
ClassReleaseById
Close
Create
CreateActionGroup
CreateWaitObject
DestroyActionGroup
DestroyWaitObject
Execute
ExecuteAsync
ExecuteResult
ExecuteWait
GetLastError
GetSchema
InsertNamedObject
Load
Open
RegisterEventClient
RemoveNamedObject
ResetActionGroup
SetLastError
SetSchema
Store
UnregisterEventClient
Update
WaitableHandle
UObject
UList
UBitFlagSet
UBitFlagSetSingle
WDomain
WObject
IEventClient
Schema interfaces
Configuration interfaces
Structures
Error codes
DTDL
DADL
Setup
UStorage.ClassAddRefById
Increments the reference count on one or more classes.
This function can be used on an object without the need to open it first.
Syntax
int
ClassAddRefById(
ObjectId
p_poiObjectId,
stcClassRefCount[]
p_aClass,
IntPtr
p_hActionGroup
);
Parameter
p_poiObjectId
Type:
ObjectId
ID of the object to execute the action on.
p_aClass
Type:
stcClassRefCount[]
Array of stcClassRefCount structs specifying the classes and counts to increase the references on the object.
p_hActionGroup
Type:
IntPtr
ActionGroup to use.
Return value
S_OK or an error from the
Error Codes
.
Remarks
This function creates an 'external' reference. It is not under the control of the database and needs to be released using
UStorage.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