DevForce Help Reference
ExecutionModes Property (VerifierOptions)


Gets or sets the conditions under which a verifier is executed.
Syntax
'Declaration
 
<DataMemberAttribute()>
Public Property ExecutionModes As VerifierExecutionModes
'Usage
 
Dim instance As VerifierOptions
Dim value As VerifierExecutionModes
 
instance.ExecutionModes = value
 
value = instance.ExecutionModes
[DataMember()]
public VerifierExecutionModes ExecutionModes {get; set;}
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

VerifierOptions Class
VerifierOptions Members

Send Feedback