Partager via


DefaultHtmlGenerator Constructeurs

Définition

Surcharges

DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ClientValidatorCache)
Obsolète.

Initialise une nouvelle instance de la classe DefaultHtmlGenerator.

Ce constructeur est obsolète et sera supprimé dans une version ultérieure. L’alternative recommandée est d’utiliser DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ClientValidatorCache, ValidationHtmlAttributeProvider).

DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ValidationHtmlAttributeProvider)

Initialise une nouvelle instance de la classe DefaultHtmlGenerator.

DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ClientValidatorCache, ValidationHtmlAttributeProvider)

Initialise une nouvelle instance de la classe DefaultHtmlGenerator.

DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ClientValidatorCache)

Attention

This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other public constructor.

Initialise une nouvelle instance de la classe DefaultHtmlGenerator.

Ce constructeur est obsolète et sera supprimé dans une version ultérieure. L’alternative recommandée est d’utiliser DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ClientValidatorCache, ValidationHtmlAttributeProvider).

public:
 DefaultHtmlGenerator(Microsoft::AspNetCore::Antiforgery::IAntiforgery ^ antiforgery, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcViewOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::Internal::ClientValidatorCache ^ clientValidatorCache);
public DefaultHtmlGenerator (Microsoft.AspNetCore.Antiforgery.IAntiforgery antiforgery, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> optionsAccessor, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache clientValidatorCache);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other public constructor.")]
public DefaultHtmlGenerator (Microsoft.AspNetCore.Antiforgery.IAntiforgery antiforgery, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> optionsAccessor, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache clientValidatorCache);
new Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator : Microsoft.AspNetCore.Antiforgery.IAntiforgery * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache -> Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is to use the other public constructor.")>]
new Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator : Microsoft.AspNetCore.Antiforgery.IAntiforgery * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache -> Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator
Public Sub New (antiforgery As IAntiforgery, optionsAccessor As IOptions(Of MvcViewOptions), metadataProvider As IModelMetadataProvider, urlHelperFactory As IUrlHelperFactory, htmlEncoder As HtmlEncoder, clientValidatorCache As ClientValidatorCache)

Paramètres

antiforgery
IAntiforgery

Le IAntiforgery instance qui est utilisé pour générer des jetons d’antiforgery.

optionsAccessor
IOptions<MvcViewOptions>

Accesseur pour MvcViewOptions.

metadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

urlHelperFactory
IUrlHelperFactory

L’IUrlHelperFactoryopérateur

htmlEncoder
HtmlEncoder

L’HtmlEncoderopérateur

clientValidatorCache
Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache

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

Attributs

S’applique à

DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ValidationHtmlAttributeProvider)

Source:
DefaultHtmlGenerator.cs
Source:
DefaultHtmlGenerator.cs
Source:
DefaultHtmlGenerator.cs

Initialise une nouvelle instance de la classe DefaultHtmlGenerator.

public:
 DefaultHtmlGenerator(Microsoft::AspNetCore::Antiforgery::IAntiforgery ^ antiforgery, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcViewOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::ViewFeatures::ValidationHtmlAttributeProvider ^ validationAttributeProvider);
public DefaultHtmlGenerator (Microsoft.AspNetCore.Antiforgery.IAntiforgery antiforgery, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> optionsAccessor, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.ViewFeatures.ValidationHtmlAttributeProvider validationAttributeProvider);
new Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator : Microsoft.AspNetCore.Antiforgery.IAntiforgery * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.ViewFeatures.ValidationHtmlAttributeProvider -> Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator
Public Sub New (antiforgery As IAntiforgery, optionsAccessor As IOptions(Of MvcViewOptions), metadataProvider As IModelMetadataProvider, urlHelperFactory As IUrlHelperFactory, htmlEncoder As HtmlEncoder, validationAttributeProvider As ValidationHtmlAttributeProvider)

Paramètres

antiforgery
IAntiforgery

Le IAntiforgery instance qui est utilisé pour générer des jetons d’antiforgery.

optionsAccessor
IOptions<MvcViewOptions>

Accesseur pour MvcViewOptions.

metadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

urlHelperFactory
IUrlHelperFactory

L’IUrlHelperFactoryopérateur

htmlEncoder
HtmlEncoder

L’HtmlEncoderopérateur

validationAttributeProvider
ValidationHtmlAttributeProvider

L’ValidationHtmlAttributeProvideropérateur

S’applique à

DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ClientValidatorCache, ValidationHtmlAttributeProvider)

Initialise une nouvelle instance de la classe DefaultHtmlGenerator.

public:
 DefaultHtmlGenerator(Microsoft::AspNetCore::Antiforgery::IAntiforgery ^ antiforgery, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcViewOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::Routing::IUrlHelperFactory ^ urlHelperFactory, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::Internal::ClientValidatorCache ^ clientValidatorCache, Microsoft::AspNetCore::Mvc::ViewFeatures::ValidationHtmlAttributeProvider ^ validationAttributeProvider);
public DefaultHtmlGenerator (Microsoft.AspNetCore.Antiforgery.IAntiforgery antiforgery, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> optionsAccessor, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache clientValidatorCache, Microsoft.AspNetCore.Mvc.ViewFeatures.ValidationHtmlAttributeProvider validationAttributeProvider);
new Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator : Microsoft.AspNetCore.Antiforgery.IAntiforgery * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions> * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache * Microsoft.AspNetCore.Mvc.ViewFeatures.ValidationHtmlAttributeProvider -> Microsoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator
Public Sub New (antiforgery As IAntiforgery, optionsAccessor As IOptions(Of MvcViewOptions), metadataProvider As IModelMetadataProvider, urlHelperFactory As IUrlHelperFactory, htmlEncoder As HtmlEncoder, clientValidatorCache As ClientValidatorCache, validationAttributeProvider As ValidationHtmlAttributeProvider)

Paramètres

antiforgery
IAntiforgery

Le IAntiforgery instance qui est utilisé pour générer des jetons d’antiforgery.

optionsAccessor
IOptions<MvcViewOptions>

Accesseur pour MvcViewOptions.

metadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

urlHelperFactory
IUrlHelperFactory

L’IUrlHelperFactoryopérateur

htmlEncoder
HtmlEncoder

L’HtmlEncoderopérateur

clientValidatorCache
Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache

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

validationAttributeProvider
ValidationHtmlAttributeProvider

L’ValidationHtmlAttributeProvideropérateur

S’applique à