InstanceStore.BeginTryCommand Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
A persistence provider implements this method, which determines whether a particular persistence command can be executed.
Namespace: System.Runtime.Persistence
Assembly: System.Runtime (in System.Runtime.dll)
Syntax
'Declaration
Protected Friend Overridable Function BeginTryCommand ( _
context As InstancePersistenceContext, _
command As InstancePersistenceCommand, _
timeout As TimeSpan, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim context As InstancePersistenceContext
Dim command As InstancePersistenceCommand
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = Me.BeginTryCommand(context, _
command, timeout, callback, state)
protected internal virtual IAsyncResult BeginTryCommand(
InstancePersistenceContext context,
InstancePersistenceCommand command,
TimeSpan timeout,
AsyncCallback callback,
Object state
)
protected public:
virtual IAsyncResult^ BeginTryCommand(
InstancePersistenceContext^ context,
InstancePersistenceCommand^ command,
TimeSpan timeout,
AsyncCallback^ callback,
Object^ state
)
abstract BeginTryCommand :
context:InstancePersistenceContext *
command:InstancePersistenceCommand *
timeout:TimeSpan *
callback:AsyncCallback *
state:Object -> IAsyncResult
override BeginTryCommand :
context:InstancePersistenceContext *
command:InstancePersistenceCommand *
timeout:TimeSpan *
callback:AsyncCallback *
state:Object -> IAsyncResult
Parameters
- context
Type: System.Runtime.Persistence.InstancePersistenceContext
The instance context.
- command
Type: System.Runtime.Persistence.InstancePersistenceCommand
The persistence command to be executed.
- 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.
- state
Type: System.Object
The state information.
Return Value
Type: System.IAsyncResult
The state of the asynchronous operation.
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