WorkflowPersistenceService.UnlockWorkflowInstanceState(Activity) 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 overridden in a derived class, unlocks the workflow instance state.
protected public:
abstract void UnlockWorkflowInstanceState(System::Workflow::ComponentModel::Activity ^ rootActivity);
protected internal abstract void UnlockWorkflowInstanceState (System.Workflow.ComponentModel.Activity rootActivity);
abstract member UnlockWorkflowInstanceState : System.Workflow.ComponentModel.Activity -> unit
Protected Friend MustOverride Sub UnlockWorkflowInstanceState (rootActivity As Activity)
Parameters
- rootActivity
- Activity
The root activity of the workflow instance.
Examples
The following example demonstrates an implementation of the UnlockWorkflowInstanceState
method. This example is from the Custom Persistence Service sample, from the FilePersistenceService.cs file. For more information, see Custom Persistence Service Sample.
// Unlock the workflow instance state.
// Instance state locking is necessary when multiple runtimes share instance persistence store
protected override void UnlockWorkflowInstanceState(Activity state)
{
//File locking is not supported in this sample
}
' unlock workflow instance state.
' instance state locking is necessary when multiple runtimes share instance persistence store
Protected Overrides Sub UnlockWorkflowInstanceState(ByVal rootActivity As System.Workflow.ComponentModel.Activity)
' File locking is not supported in this sample
End Sub
Remarks
This method is abstract, so it does not contain a default implementation on locking and unlocking.
While implementing a custom persistence service, if you want to implement a locking scheme you will need to override this method and provide a locking-unlocking mechanism in the SaveWorkflowInstanceState method based on the value of the unlock parameter.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示