Επεξεργασία

Κοινή χρήση μέσω


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.

public:
 virtual IAsyncResult ^ BeginLoadIfChanged(TimeSpan timeout, System::Object ^ instanceToken, AsyncCallback ^ callback, System::Object ^ state);
public virtual IAsyncResult BeginLoadIfChanged (TimeSpan timeout, object instanceToken, AsyncCallback callback, object state);
abstract member BeginLoadIfChanged : TimeSpan * obj * AsyncCallback * obj -> IAsyncResult
override this.BeginLoadIfChanged : TimeSpan * obj * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginLoadIfChanged (timeout As TimeSpan, instanceToken As Object, callback As AsyncCallback, state As Object) As IAsyncResult

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