GitHub
Download
Forum
Overview
Tutorial
C++ API
C# API
General interfaces
Data interfaces
UDomain
UStorage
UObject
UList
UBitFlagSet
UBitFlagSetSingle
WDomain
Create
Destroy
AbortTransaction
Connect
Create
CreateTransaction
CreateWaitObject
DestroyTransaction
DestroyWaitObject
Disconnect
DisconnectAll
Execute
ExecuteAsync
ExecuteResult
ExecuteWait
GetConnection
GetDomain
GetLastError
GetSchema
GetStorage
Initialize
InsertNamedObject
IsConnected
LoadData
Open
OpenNamedObject
Query
QueryNamedObject
QueryNamedObjectId
QueryNamedObjectLink
QueryNamedObjectMultiple
QueryStorage
ReleaseAllStorages
ReleaseStorage
RemoveNamedObject
ResetTransaction
StoreData
Uninitialize
WaitableHandle
WObject
IEventClient
Schema interfaces
Configuration interfaces
Structures
Error codes
DTDL
DADL
Setup
WDomain.Create
Creates a new WObject.
Syntax
int
Create<T : WObject>(
out
T
p_ppObject,
DataFoundation.
ObjectId
p_poiParentId,
U
Int32
[]
p_aulClassId
);
Parameter
p_ppObject
Type:
out T
Variable that receives the interface of the new object.
The variable contains the interface on successful return. The variable is not modified on failure.
Call
WObject.Release
on the object when you no longer need it.
p_poiParentId
Type:
DataFoundation.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
Type:
UInt32[]
Array of classes the object contains.
Return value
S_OK or an error from the
Error Codes
.
Remarks
This function only creates a temporary object. You need to call
WDomain.StoreData
and
WDomain.Execute
or
WDomain.ExecuteAsync
to create the object in the database.
T can be WObject or a DADL-generated class, derived from WObject
© 2022 Mobiland AG