InstancePersistenceCommand.Validate(InstanceView) Méthode

Définition

Valide la commande.

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)

Paramètres

view
InstanceView

Objet InstanceView représentant l’état actuel du handle d’instance.

Remarques

Les commandes remplacent Validate pour vérifier qu’une commande est valide pour s’exécuter à l’heure actuelle. Les implémentations doivent lever une exception InvalidOperationException si la commande n’est pas valide pour s’exécuter sur InstanceView passée en tant que paramètre. La méthode Validate est appelée par InstanceStore avant que la commande ne soit passée à InstanceStore.TryCommand.

S’applique à