DefaultValidationHtmlAttributeProvider 构造函数

定义

重载

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

初始化一个新 DefaultValidationHtmlAttributeProvider 实例。

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

初始化一个新 DefaultValidationHtmlAttributeProvider 实例。

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

Source:
DefaultValidationHtmlAttributeProvider.cs
Source:
DefaultValidationHtmlAttributeProvider.cs

初始化一个新 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)

参数

optionsAccessor
IOptions<MvcViewOptions>

MvcViewOptions访问器。

clientValidatorCache
Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache

提供 Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache 列表的 IClientModelValidator

适用于

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

Source:
DefaultValidationHtmlAttributeProvider.cs

初始化一个新 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)

参数

optionsAccessor
IOptions<MvcViewOptions>

MvcViewOptions访问器。

clientValidatorCache
ClientValidatorCache

提供 ClientValidatorCache 列表的 IClientModelValidator

适用于