DevForce Help Reference
VerifierEngine Class
Members 


The primary entry point for verification services within DevForce.
Object Model
VerifierEngine ClassCompositionContext ClassVerifierOptions Class
Syntax
'Declaration
 
Public Class VerifierEngine 
'Usage
 
Dim instance As VerifierEngine
public class VerifierEngine 
Remarks
An application may have any number of VerifierEngines, although it is probably more likely that only a single VerifierEngine will be necessary for most applications. You can access or set the VerifierEngine for an EntityManager with the EntityManager.VerifierEngine property.

Verifiers may be added to a VerifierEngine in several ways. They can be automatically discovered via attributes and code embedded directly within the types to be verified; they can be added programmatically; and they can be loaded from a configuration file. Any combination of these methods is also possible.

Attributes for StringLengthVerifier and RequiredValueVerifier are automatically generated by DevForce for the properties of your entities where appropriate. You can mark up your entities, and other .NET types, for other verifiers such as RangeVerifierAttribute and RegexVerifierAttribute. You can also implement the IVerifierProvider interface to provide a custom method returning a collection of verifiers, to be called during verifier discovery.

To programmatically add a verifier to the engine, use the AddVerifier method. To load verifiers from a configuration file, use DiscoverVerifiersFromConfig. To remove a verifier from the engine, use RemoveVerifier. Use the ErrorsResourceManager to supply custom or localized error messages for verification failures.

DevForce will automatically execute appropriate before set and after set verifiers for properties of your entities. You can also call any of the Execute(Object) overloads directly for instance-level verification.

See the "Validation through Verification" chapter in the Learning Resources for more information.

Inheritance Hierarchy

System.Object
   IdeaBlade.Validation.VerifierEngine

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

VerifierEngine Members
IdeaBlade.Validation Namespace

Send Feedback