语言

LockingPersistenceProvider.Update 方法

定义

更新持久性存储中的实例状态信息。

重载

名称 说明
Update(Object, TimeSpan)

在派生类中实现时,更新持久性存储中的实例状态信息。 此方法在更新持久性存储中的实例状态信息后不会解锁实例。

Update(Object, TimeSpan, Boolean)

在派生类中实现时,更新持久性存储中的实例状态信息。 此方法在更新持久性存储中的实例状态信息后不会解锁实例。

Update(Object, TimeSpan)

在派生类中实现时,更新持久性存储中的实例状态信息。 此方法在更新持久性存储中的实例状态信息后不会解锁实例。

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

参数

instance
Object

实例状态信息。

timeout
TimeSpan

持久性提供程序中止操作的时间段。

返回

实例状态信息。

适用于

Update(Object, TimeSpan, Boolean)

在派生类中实现时,更新持久性存储中的实例状态信息。 此方法在更新持久性存储中的实例状态信息后不会解锁实例。

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

参数

instance
Object

实例状态信息。

timeout
TimeSpan

持久性提供程序中止操作的时间段。

unlockInstance
Boolean

true 如果实例在更新实例状态信息后解锁,则为 ;否则 false。

返回

实例状态信息。

适用于