Visual Basic (Declaration) | |
---|---|
<DataMemberAttribute()> Public Property ExecutionModes As VerifierExecutionModes |
Visual Basic (Usage) | ![]() |
---|---|
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); } |
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.
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