InstancePersistenceCommand.Validate Method (InstanceView)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Validates the command.

Namespace:   System.Runtime.DurableInstancing
Assembly:  System.Runtime.DurableInstancing (in System.Runtime.DurableInstancing.dll)

protected internal virtual void Validate(
	InstanceView view


Type: System.Runtime.DurableInstancing.InstanceView

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

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.

.NET Framework
Available since 4.0
Return to top