Muokkaa

Jaa


LockingPersistenceProvider.BeginLoad Method

Definition

Begins an asynchronous operation to load an instance based on state information in the persistence store.

Overloads

BeginLoad(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to load an instance based on state information in the persistence store using the parameters. This method does not lock the instance.

BeginLoad(TimeSpan, Boolean, AsyncCallback, Object)

Begins an asynchronous operation to load an instance based on state information in the persistence store using the parameters. This method locks the instance after loading the instance state if the value of the lockInstance parameter is true.

BeginLoad(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to load an instance based on state information in the persistence store using the parameters. This method does not lock the instance.

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

Parameters

timeout
TimeSpan

The interval in which the operation must be completed without timing out.

callback
AsyncCallback

The delegate that receives the notification when the operation completes.

state
Object

The state information associated with the asynchronous operation.

Returns

The status of an asynchronous operation.

Remarks

This method calls into the BeginLoad, which takes an additional parameter that specifies whether the instance must be locked in the persistence store. This method passes false as a value for this parameter to the calling method.

Applies to

BeginLoad(TimeSpan, Boolean, AsyncCallback, Object)

Begins an asynchronous operation to load an instance based on state information in the persistence store using the parameters. This method locks the instance after loading the instance state if the value of the lockInstance parameter is true.

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

Parameters

timeout
TimeSpan

An interval in which the operation must be completed before timing out.

lockInstance
Boolean

true if the instance must be locked; otherwise false.

callback
AsyncCallback

The delegate that receives the notification when the operation completes.

state
Object

The state information associated with the asynchronous operation.

Returns

The status of an asynchronous operation.

Applies to