共用方式為


DefaultValidationHtmlAttributeProvider 建構函式

定義

多載

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

初始化新的 DefaultValidationHtmlAttributeProvider 執行個體。

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

初始化新的 DefaultValidationHtmlAttributeProvider 執行個體。

DefaultValidationHtmlAttributeProvider(IOptions<MvcViewOptions>, IModelMetadataProvider, ClientValidatorCache)

來源:
DefaultValidationHtmlAttributeProvider.cs
來源:
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)

來源:
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

適用於