語言

LockingPersistenceProvider.Update 方法

定義

更新持久儲存中的實例狀態資訊。

多載

名稱 Description
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。

傳回

實例狀態資訊。

適用於