GitHub
Download
Forum
Overview
Tutorial
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
C# API
DTDL
DADL
Setup
UStorage::Create
Creates a new UObject.
Syntax
HRESULT
Create(
[out]
UObject**
p_ppObject,
[in]
const
ObjectId
*
p_poiParentId,
[in]
const
U
INT32
*
p_aulClassId,
[in]
U
INT32
p_ulClassCount
);
Parameter
p_ppObject
[out]
Type:
UObject**
Pointer to a variable that receives the interface pointer of the new object.
The variable contains the interface pointer on successful return. The variable is not modified on failure.
Call
UStorage::Close
on the pointer when you no longer need it.
p_poiParentId
[in]
Type:
const ObjectId*
ID of the parent object.
Remarks:
A "parent" object is not really a parent. This information is only used by the system for load optimizations to determine which objects will likely be used at the same time.
p_aulClassId
[in]
Type:
const UINT32*
Array of classes the object contains.
p_ulClassCount
[in]
Type:
UINT32
Number of elements in the p_aulClassId array.
Return value
This function has no return value.
Remarks
This function only creates a temporary object. You need to call
UStorage::Store
and
UStorage::Execute
or
UStorage::ExecuteAsync
to create the object in the database.
© 2022 Mobiland AG