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::Delete Method (Object^, TimeSpan)
.NET Framework (current version)
When implemented in a derived class, permanently deletes service state information from 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.
The following code demonstrates how to implement the Delete method. This code example is part of the DurableServiceFactory SDK sample from the FilePersistenceProviderFactory.cs file. For more information, seethe DurableServiceFactory SDK sample.
public override void Delete(object instance, TimeSpan timeout) { base.ThrowIfDisposedOrNotOpen(); this.factory.Delete(this.Id, timeout); }
.NET Framework
Available since 3.5
Available since 3.5
Show: