Επεξεργασία

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


PersistenceProvider.LoadIfChanged(TimeSpan, Object, Object) Method

Definition

When implemented in a derived class, loads service state information from the persistence store if that data has been changed.

public:
 virtual bool LoadIfChanged(TimeSpan timeout, System::Object ^ instanceToken, [Runtime::InteropServices::Out] System::Object ^ % instance);
public virtual bool LoadIfChanged (TimeSpan timeout, object instanceToken, out object instance);
abstract member LoadIfChanged : TimeSpan * obj * obj -> bool
override this.LoadIfChanged : TimeSpan * obj * obj -> bool
Public Overridable Function LoadIfChanged (timeout As TimeSpan, instanceToken As Object, ByRef instance As Object) As Boolean

Parameters

timeout
TimeSpan

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

instanceToken
Object

The token returned by a previous Create(Object, TimeSpan) or Update(Object, TimeSpan), which represents the current state held by the caller.

instance
Object

The actual instance state.

Returns

true if the instanceout parameter has been set with the latest copy from the persistence store; false if the locally cached state is already up to date.

Applies to