ValidatorFactory.CreateValidator<T> Method
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. |
Returns a validator representing the validation criteria specified for type T through configuration and attributes on type T and its ancestors for the default ruleset.
Namespace: Microsoft.Practices.EnterpriseLibrary.Validation
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Validation.Silverlight.dll) Version: 5.0.505.0
Syntax
public Validator<T> CreateValidator<T>()
'Declaration
Public Function CreateValidator(Of T) As Validator(Of T)
public:
generic<typename T>
Validator<T>^ CreateValidator()
Type Parameters
- T
The type to get the validator for.
Return Value
The validator.