Export (0) Print
Expand All

InstancePersistenceCommand.Validate Method

Validates the command.

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

protected internal virtual void Validate(
	InstanceView view
)

Parameters

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft