Modifier

Partager via


LockingPersistenceProvider.BeginUpdate Method

Definition

Begins an asynchronous operation to update instance state information in the persistence store.

Overloads

BeginUpdate(Object, TimeSpan, Boolean, AsyncCallback, Object)

Begins an asynchronous operation to update instance state information in the persistence store using the parameters passed. This operation locks the instance in the persistence store if the value of the unlockInstance parameter is true.

BeginUpdate(Object, TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to update instance state information in the persistence store using the parameters passed. This operation does not unlock the instance in the instance store.

BeginUpdate(Object, TimeSpan, Boolean, AsyncCallback, Object)

Begins an asynchronous operation to update instance state information in the persistence store using the parameters passed. This operation locks the instance in the persistence store if the value of the unlockInstance parameter is true.

public:
 abstract IAsyncResult ^ BeginUpdate(System::Object ^ instance, TimeSpan timeout, bool unlockInstance, AsyncCallback ^ callback, System::Object ^ state);
public abstract IAsyncResult BeginUpdate (object instance, TimeSpan timeout, bool unlockInstance, AsyncCallback callback, object state);
override this.BeginUpdate : obj * TimeSpan * bool * AsyncCallback * obj -> IAsyncResult
Public MustOverride Function BeginUpdate (instance As Object, timeout As TimeSpan, unlockInstance As Boolean, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

instance
Object

The instance whose state information is being updated in the persistence store.

timeout
TimeSpan

The interval in which the operation must complete without timing out.

unlockInstance
Boolean

true if the instance must be locked after the instance state is updated in the persistence store; otherwise false.

callback
AsyncCallback

The delegate that receives the notification when the operation completes.

state
Object

The state information about the asynchronous operation.

Returns

The status of an asynchronous operation.

Applies to

BeginUpdate(Object, TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to update instance state information in the persistence store using the parameters passed. This operation does not unlock the instance in the instance store.

public:
 override IAsyncResult ^ BeginUpdate(System::Object ^ instance, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public override IAsyncResult BeginUpdate (object instance, TimeSpan timeout, AsyncCallback callback, object state);
override this.BeginUpdate : obj * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Overrides Function BeginUpdate (instance As Object, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

instance
Object

The instance whose state information is being updated in the persistence store.

timeout
TimeSpan

The interval in which the operation must complete without timing out.

callback
AsyncCallback

The delegate that receives the notification when the operation is completed.

state
Object

The state information about the asynchronous operation.

Returns

The status of an asynchronous operation.

Remarks

This method calls into the BeginUpdate method and passes a false value for the unlockInstance parameter.

Applies to