Bearbeiten

Freigeben über


LockingPersistenceProvider.BeginLoadIfChanged Method

Definition

Begins an asynchronous operation to load the instance state information from the persistence store if the state information has been changed since the last time the information was loaded by the caller.

Overloads

BeginLoadIfChanged(TimeSpan, Object, AsyncCallback, Object)

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. This method call does not lock the instance in the persistence store.

BeginLoadIfChanged(TimeSpan, Object, Boolean, AsyncCallback, Object)

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. This method call lets you specify whether you want to lock the instance in the persistence store.

BeginLoadIfChanged(TimeSpan, Object, AsyncCallback, Object)

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. This method call does not lock the instance in the persistence store.

public:
 override IAsyncResult ^ BeginLoadIfChanged(TimeSpan timeout, System::Object ^ instanceToken, AsyncCallback ^ callback, System::Object ^ state);
public override IAsyncResult BeginLoadIfChanged (TimeSpan timeout, object instanceToken, AsyncCallback callback, object state);
override this.BeginLoadIfChanged : TimeSpan * obj * AsyncCallback * obj -> IAsyncResult
Public Overrides 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 operation.

instanceToken
Object

The token returned by a previous Create or Update method 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 status of an asynchronous operation.

Applies to

BeginLoadIfChanged(TimeSpan, Object, Boolean, AsyncCallback, Object)

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. This method call lets you specify whether you want to lock the instance in the persistence store.

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

Parameters

timeout
TimeSpan

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

instanceToken
Object

The token returned by a previous Create or Update method that represents the current state held by the caller.

lockInstance
Boolean

true if the instance is locked in the persistence store; otherwise false.

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 status of an asynchronous operation.

Applies to