PersistenceProvider.LoadIfChanged(TimeSpan, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 instance
out
parameter has been set with the latest copy from the persistence store; false
if the locally cached state is already up to date.