InstancePersistenceCommand.Validate(InstanceView) Method

Definition

Validates the command.

protected public:
 virtual void Validate(System::Runtime::DurableInstancing::InstanceView ^ view);
protected internal virtual void Validate (System.Runtime.DurableInstancing.InstanceView view);
abstract member Validate : System.Runtime.DurableInstancing.InstanceView -> unit
override this.Validate : System.Runtime.DurableInstancing.InstanceView -> unit
Protected Friend Overridable Sub Validate (view As InstanceView)

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