InstancePersistenceCommand.Validate(InstanceView) 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.
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.