InstanceStore.BeginExecute Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Asynchronously executes persistence commands such as LoadWorkflowCommand and SaveWorkflowCommand.

Namespace:  System.Runtime.Persistence
Assembly:  System.Runtime (in System.Runtime.dll)


Public Function BeginExecute ( _
    handle As InstanceHandle, _
    command As InstancePersistenceCommand, _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
Dim instance As InstanceStore
Dim handle As InstanceHandle
Dim command As InstancePersistenceCommand
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginExecute(handle, _
    command, timeout, callback, state)
public IAsyncResult BeginExecute(
    InstanceHandle handle,
    InstancePersistenceCommand command,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
IAsyncResult^ BeginExecute(
    InstanceHandle^ handle, 
    InstancePersistenceCommand^ command, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
member BeginExecute : 
        handle:InstanceHandle * 
        command:InstancePersistenceCommand * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 


  • timeout
    Type: System.TimeSpan
    The timeout value for the command execution.
  • callback
    Type: System.AsyncCallback
    The asynchronous callback delegate that receives notification of the completion of the asynchronous operation.

Return Value

Type: System.IAsyncResult
The state of the asynchronous operation.


A host calls the BeginExecute(InstanceHandle, InstancePersistenceCommand, TimeSpan, AsyncCallback, Object) method to execute a persistence command against an instance handle asynchronously. The host obtains the instance handle by invoking the CreateInstanceHandle() method.


Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

See Also


InstanceStore Class

InstanceStore Members

System.Runtime.Persistence Namespace