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



Gets or sets the order that verifiers are executed within a verifier batch.

Syntax

Visual Basic (Declaration) 
Public Property SortValue As Double
Visual Basic (Usage)Copy Code
Dim instance As Verifier
Dim value As Double
 
instance.SortValue = value
 
value = instance.SortValue
C# 
public double SortValue {get; set;}
C++/CLI 
public:
property double SortValue {
   double get();
   void set (    double value);
}

Remarks

By default, verifiers are executed in the order that they were added to the VerifierEngine. However it is possible to change this order via the this property.

All verifiers by default have a SortValue of 0. However, verifiers also have an InitializationOrder that corresponds to the order that the verifier was added to a VerifierEngine. Verifiers are always sorted for execution first by the externally exposed SortValue and secondly by their InitializationOrder. This implementation means that verifiers have an implicit sort order that is defined according to when each verifier was added to a VerifierEngine. This means that by default verifiers defined with a VerifierAttribute will sort before verifiers defined via a VerifierProvider, which in turn, will sort before any programmatically added verifiers. Furthermore, discovered base class verifiers will sort before discovered subclass verifiers.

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.