Gets or sets a value that specifies the TimeSpan that occurs between the time the workflow becomes idle and is persisted.
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
The TimeSpan begins to elapse when the workflow instance becomes idle. This property is useful if you want to persist a workflow instance more aggressively while still keeping the instance in memory for as long as possible. The default value for this property is MaxValue. The property is only valid if its value is less than TimeToUnload. If it is greater, it is ignored. If the TimeSpan specified by elapses before the TimeSpan specified by TimeToUnload, persistence must complete before the workflow is unloaded. This implies that the unload operation may be delayed until the workflow is persisted. The persistence layer is responsible for handling any retries for transient errors and only throws exceptions on non-recoverable errors. Therefore, any exceptions thrown during persistence are treated as fatal and the workflow instance is aborted.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)