LockingPersistenceProvider.Load 方法

定义

从实例存储区中加载实例状态信息。Loads instance state information from the instance store.

重载

Load(TimeSpan)

从持久性存储区中加载服务状态信息而不锁定实例。Loads service state information from the persistence store without locking the instance.

Load(TimeSpan, Boolean)

在锁定实例后从持久性存储区中加载状态信息。Loads state information from the persistence store after locking the instance.

Load(TimeSpan)

从持久性存储区中加载服务状态信息而不锁定实例。Loads service state information from the persistence store without locking the instance.

public:
 override System::Object ^ Load(TimeSpan timeout);
public override object Load (TimeSpan timeout);
override this.Load : TimeSpan -> obj
Public Overrides Function Load (timeout As TimeSpan) As Object

参数

timeout
TimeSpan

时间段,永久性提供程序在该时间段后将中止此尝试。The time period after which the persistence provider aborts this attempt.

返回

Object

服务状态信息。The service state information.

注解

此方法调用 Load 方法,并 lockInstance 将参数设置为 falseThis method invokes the Load method with lockInstance parameter set to false.

适用于

Load(TimeSpan, Boolean)

在锁定实例后从持久性存储区中加载状态信息。Loads state information from the persistence store after locking the instance.

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

参数

timeout
TimeSpan

时间段,永久性提供程序在该时间段后将中止此操作。The period after which the persistence provider aborts this operation.

lockInstance
Boolean

如果应锁定实例,则为 true;否则为 falsetrue if the instance should be locked; otherwise false.

返回

Object

状态信息。The state information.

适用于