InstancePersistenceCommand.Validate(InstanceView) Method

Definition

Validates the command.

C#
protected internal virtual void Validate(System.Runtime.DurableInstancing.InstanceView view);

Parameters

view
InstanceView

An InstanceView object representing the current state of the instance handle.

Remarks

Commands override Validate to ensure that a command is valid to execute at the current time. Implementations should throw an InvalidOperationException if the command is not valid to execute against the InstanceView passed as a parameter. The Validate method is called by InstanceStore before the command is passed to InstanceStore.TryCommand.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1