Partager via


ValidationFactory.CreateValidatorFromAttributes<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.

Returns a validator representing the validation criteria specified for type T through attributes on type T and its ancestors for the default ruleset.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Validation
Assembly:  Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll)

Syntax

'Declaration
PublicSharedFunctionCreateValidatorFromAttributes(Of T) As Validator(Of T)
publicstatic Validator<T> CreateValidatorFromAttributes<T>()
public:
generic<typename T>
static Validator<T>^ CreateValidatorFromAttributes()
JScript does not support generic types or methods.

Type Parameters

  • T
    The type to get the validator for.

Return Value

The validator.

See Also

ValidationFactory Class

CreateValidatorFromAttributes<T> Overload

Microsoft.Practices.EnterpriseLibrary.Validation Namespace

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.