Share via


InstanceStore.Execute Method

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

Executes a persistence command. Examples of persistence commands are: LoadWorkflowCommand and SaveWorkflowCommand.

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

Syntax

'Declaration
Public Function Execute ( _
    handle As InstanceHandle, _
    command As InstancePersistenceCommand, _
    timeout As TimeSpan _
) As InstanceView
'Usage
Dim instance As InstanceStore
Dim handle As InstanceHandle
Dim command As InstancePersistenceCommand
Dim timeout As TimeSpan
Dim returnValue As InstanceView

returnValue = instance.Execute(handle, _
    command, timeout)
public InstanceView Execute(
    InstanceHandle handle,
    InstancePersistenceCommand command,
    TimeSpan timeout
)
public:
InstanceView^ Execute(
    InstanceHandle^ handle, 
    InstancePersistenceCommand^ command, 
    TimeSpan timeout
)
member Execute : 
        handle:InstanceHandle * 
        command:InstancePersistenceCommand * 
        timeout:TimeSpan -> InstanceView 

Parameters

Return Value

Type: System.Runtime.Persistence.InstanceView
The view of an instance.

Remarks

A host calls the Execute(InstanceHandle, InstancePersistenceCommand, TimeSpan) method to execute a persistence command against an instance handle, which the host obtains by invoking the CreateInstanceHandle() method.

Platforms

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

Reference

InstanceStore Class

InstanceStore Members

System.Runtime.Persistence Namespace