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

Executes all pending actions of an ActionGroup atomically. If one action fails, no action will modify data.
Same function as WDomain.Execute, but the function runs asynchronously.

Syntax

int ExecuteAsync(
IntPtr p_hTransaction,
IntPtr p_hWaitObject
);

Parameter

p_hTransaction
Type: IntPtr
Transaction to execute.
Can be one of the standard transactions Transaction::Store or Transaction::Load.
p_hWaitObject
Type: IntPtr
Handle to a WaitObject that will be used.
Can be null. In this case, the default (global) WaitObject is used.

Return value

S_OK or an error from the Error Codes.

Remarks

You can use WDomain.ExecuteWait or WDomain.WaitableHandle together with a wait function to wait for completion and later read the result with WDomain.ExecuteResult.
For more information, see the description of WDomain.Execute.
© 2022 Mobiland AG