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

Opens a WObject. This function performs a WDomain.QueryNamedObjectId and WDomain.Open in one call.

Syntax

int OpenNamedObject<T : WObject>(
out T p_ppObject,
Guid p_guidName,
IntPtr p_hTransaction
);

Parameter

p_ppObject
Type: out T
Variable that receives the interface of the object.
A pointer is always returned. Call WDomain.Execute or WDomain.ExecuteAsync and, in case of a failure or partial failure, call WObject.GetLastError on the object to find out if the open operation succeeded.
p_guidName
Type: Guid
ID (name) of the named object to open.
p_hTransaction
Type: IntPtr
Handle to a transaction.
Can be the standard transaction Transaction::Load.

Return value

S_OK or an error from the Error Codes.

Remarks

T can be WObject or a DADL-generated class, derived from WObject
© 2022 Mobiland AG