IdeaBlade DevForce 2010 Help Reference
ExecutionModes Property
See Also  Send Feedback
IdeaBlade.Validation Assembly > IdeaBlade.Validation Namespace > VerifierOptions Class : ExecutionModes Property



Gets or sets the conditions under which a verifier is executed.

Syntax

Visual Basic (Declaration) 
<DataMemberAttribute()>
Public Property ExecutionModes As VerifierExecutionModes
Visual Basic (Usage)Copy Code
Dim instance As VerifierOptions
Dim value As VerifierExecutionModes
 
instance.ExecutionModes = value
 
value = instance.ExecutionModes
C# 
[DataMemberAttribute()]
public VerifierExecutionModes ExecutionModes {get; set;}
C++/CLI 
[DataMemberAttribute()]
public:
property VerifierExecutionModes ExecutionModes {
   VerifierExecutionModes get();
   void set (    VerifierExecutionModes value);
}

Remarks

The determination of when and how a verifier is executed is controlled via the ExecutionModes and Verifier.TriggerLinks properties on each verifier. In general, we can think of each verifier as being executed either in the context of verifying an entire object or in the more localized context of a single change that affects the object.

An example of the first would be if we wanted to verify that an instance of an Employee object was completely valid before we save it and in this case we might want to perform a large number of verifications on a number of individual properties of the employee object in order to completely verify its correctness. An example of the second is when we are either in the process of changing or have changed the “HireDate” on an employee and we only want to perform those verifications that are in some way effected by this change. The latter is an example of a “Triggered” verification and the first is an example of an “Instance” verification.

“Triggered” verifications can be further subdivided into “pre” and “post” triggering categories. A “BeforeSet” trigger verification is one that should be applied before some specific change is actually made and a “AfterSet” trigger verification is one where we want to execute the verification immediately after some change has occurred. Any given verifier might be written in such a way as to be applicable under several of these conditions.

The default is VerifierExecutionModes.InstanceAndOnBeforeSetTriggers.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.