Partager via


DefaultValidationHtmlAttributeProvider Constructeurs

Définition

Surcharges

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

Initialise une nouvelle instance de DefaultValidationHtmlAttributeProvider.

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

Initialise une nouvelle instance de DefaultValidationHtmlAttributeProvider.

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

Source:
DefaultValidationHtmlAttributeProvider.cs
Source:
DefaultValidationHtmlAttributeProvider.cs

Initialise une nouvelle instance de DefaultValidationHtmlAttributeProvider.

public:
 DefaultValidationHtmlAttributeProvider(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcViewOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::Internal::ClientValidatorCache ^ clientValidatorCache);
public DefaultValidationHtmlAttributeProvider (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> optionsAccessor, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache clientValidatorCache);
new Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultValidationHtmlAttributeProvider : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache -> Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultValidationHtmlAttributeProvider
Public Sub New (optionsAccessor As IOptions(Of MvcViewOptions), metadataProvider As IModelMetadataProvider, clientValidatorCache As ClientValidatorCache)

Paramètres

optionsAccessor
IOptions<MvcViewOptions>

Accesseur pour MvcViewOptions.

metadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

clientValidatorCache
Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache

Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache qui fournit une liste de IClientModelValidators.

S’applique à

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

Source:
DefaultValidationHtmlAttributeProvider.cs

Initialise une nouvelle instance de DefaultValidationHtmlAttributeProvider.

public:
 DefaultValidationHtmlAttributeProvider(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcViewOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ClientValidatorCache ^ clientValidatorCache);
public DefaultValidationHtmlAttributeProvider (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> optionsAccessor, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorCache clientValidatorCache);
new Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultValidationHtmlAttributeProvider : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorCache -> Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultValidationHtmlAttributeProvider
Public Sub New (optionsAccessor As IOptions(Of MvcViewOptions), metadataProvider As IModelMetadataProvider, clientValidatorCache As ClientValidatorCache)

Paramètres

optionsAccessor
IOptions<MvcViewOptions>

Accesseur pour MvcViewOptions.

metadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

clientValidatorCache
ClientValidatorCache

ClientValidatorCache qui fournit une liste de IClientModelValidators.

S’applique à