Επεξεργασία

Κοινή χρήση μέσω


PersistenceProvider.Update(Object, TimeSpan) Method

Definition

When implemented in a derived class, updates service state records in the persistence store.

public:
 abstract System::Object ^ Update(System::Object ^ instance, TimeSpan timeout);
public abstract object Update (object instance, TimeSpan timeout);
abstract member Update : obj * TimeSpan -> obj
Public MustOverride Function Update (instance As Object, timeout As TimeSpan) As Object

Parameters

instance
Object

The actual instance state.

timeout
TimeSpan

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

Returns

The instance token corresponding to the state just saved. This can be passed to LoadIfChanged(TimeSpan, Object, Object) to determine whether the state in the persistence store differs from the state when Create was called.

Applies to