PersistenceProvider::EndLoadIfChanged Method (IAsyncResult^, Object^%)
When implemented in a derived class, represents the end of the LoadIfChanged phase. The LoadIfChanged phase occurs when state data is loaded into the persistence provider from the persistence store, and the state data in the persistence store has been changed.
Assembly: System.WorkflowServices (in System.WorkflowServices.dll)
public: virtual bool EndLoadIfChanged( IAsyncResult^ result, [OutAttribute] Object^% instance )
Parameters
- result
-
Type:
System::IAsyncResult^
A reference to the result of the operation.
- instance
-
Type:
System::Object^%
The actual instance state.
Return Value
Type: System::Booleantrue 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.
The following code demonstrates how to implement the EndLoadIfChanged method.
public override bool EndLoadIfChanged(IAsyncResult result, out object instance) { base.ThrowIfDisposedOrNotOpen(); instance = this.factory.EndLoad(result); return true; }
Available since 3.5