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.AddClass

Adds one or more classes to an object.

Syntax

int AddClass(
UObject p_pObject,
UInt32[] p_aulClassId
);

Parameter

p_pObject
Type: UObject
Object that the action is to be executed on.
p_aulClassId
Type: UInt32[]
Array of local class IDs to add to the object.

Return value

S_OK or an error from the Error Codes.

Remarks

If a class is already part of the object, this function does nothing.
You need to reference the new classes in the same transaction that you create them in. Otherwise they will be deleted again.
© 2022 Mobiland AG