The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
PersistenceProvider::Create Method (Object^, TimeSpan)
.NET Framework (current version)
When implemented in a derived class, creates a service state record in the persistence store.
Assembly: System.WorkflowServices (in System.WorkflowServices.dll)
Parameters
- instance
-
Type:
System::Object^
The actual instance state.
- timeout
-
Type:
System::TimeSpan
The time period after which the persistence provider aborts this attempt.
Return Value
Type: System::Object^The instance token corresponding to the state just saved. This can be passed to LoadIfChanged to determine whether the state in the persistence store differs from the state when Create was called.
The following code demonstrates how to implement the Create method.
public override object Create(object instance, TimeSpan timeout) { base.ThrowIfDisposedOrNotOpen(); this.factory.Create(this.Id, instance, timeout); return null; }
.NET Framework
Available since 3.5
Available since 3.5
Show: