PersistenceProvider.BeginLoadIfChanged Method

Definition

When implemented in a derived class, represents the beginning of the LoadIfChanged phase. The LoadIfChanged phase occurs when state data is loaded into the persistence provider from the persistence store, and the state data in the persistence store has been changed.

C#
public virtual IAsyncResult BeginLoadIfChanged(TimeSpan timeout, object instanceToken, AsyncCallback callback, object state);

Parameters

timeout
TimeSpan

The time period after which the persistence provider aborts this attempt.

instanceToken
Object

The token returned by a previous Create(Object, TimeSpan) or Update(Object, TimeSpan) that represents the current state held by the caller.

callback
AsyncCallback

The method to be called when the operation is completed.

state
Object

A user-provided object that distinguishes this particular asynchronous operation from other operations.

Returns

The state of the BeginLoadIfChanged(TimeSpan, Object, AsyncCallback, Object) asynchronous method call.

Applies to

Продукт Версії
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1