Validating Parameter Values

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

Applications should protect against errors caused by invalid or out-of-range values provided as input to the user interface or applied to methods or properties within the code. Writing validation code is always an onerous task, with the constant danger of repetition or overlooking some unexpected situation. The Policy Injection Application Block provides a handler that takes advantage of the features exposed by the Enterprise Library Validation Application Block; this minimizes the code developers have to create and it allows administrators to modify the validation policies through configuration, if required.

For more details about applying validation to class members using the Policy Injection Application Block, see The Validation Handler in the section Configuring and Using Custom Matching Rules.

The Validation Application Block provides a comprehensive set of validators that developers or administrators can combine into rule sets and composite rules. For details about using the Validation Application Block, see Introduction to the Validation Application Block.

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.
Show: