Share via


DefaultValidationHtmlAttributeProvider Class

Definition

Default implementation of ValidationHtmlAttributeProvider.

public ref class DefaultValidationHtmlAttributeProvider : Microsoft::AspNetCore::Mvc::ViewFeatures::ValidationHtmlAttributeProvider
public class DefaultValidationHtmlAttributeProvider : Microsoft.AspNetCore.Mvc.ViewFeatures.ValidationHtmlAttributeProvider
type DefaultValidationHtmlAttributeProvider = class
    inherit ValidationHtmlAttributeProvider
Public Class DefaultValidationHtmlAttributeProvider
Inherits ValidationHtmlAttributeProvider
Inheritance
DefaultValidationHtmlAttributeProvider

Constructors

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

Initializes a new DefaultValidationHtmlAttributeProvider instance.

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

Initializes a new DefaultValidationHtmlAttributeProvider instance.

Methods

AddAndTrackValidationAttributes(ViewContext, ModelExplorer, String, IDictionary<String,String>)

Adds validation-related HTML attributes to the attributes if client validation is enabled and validation attributes have not yet been added for this expression in the current <form>.

(Inherited from ValidationHtmlAttributeProvider)
AddValidationAttributes(ViewContext, ModelExplorer, IDictionary<String,String>)

Adds validation-related HTML attributes to the attributes if client validation is enabled.

Applies to