Compartir a través de


DefaultHtmlGenerator Constructores

Definición

Sobrecargas

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

Inicializa una nueva instancia de la clase DefaultHtmlGenerator.

Este constructor está obsoleto y se quitará en una versión futura. La alternativa recomendada es usar DefaultHtmlGenerator(IAntiforgery, IOptions<MvcViewOptions>, IModelMetadataProvider, IUrlHelperFactory, HtmlEncoder, ClientValidatorCache, ValidationHtmlAttributeProvider).

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

Inicializa una nueva instancia de la clase DefaultHtmlGenerator.

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

Inicializa una nueva instancia de la clase DefaultHtmlGenerator.

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

Precaución

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

Inicializa una nueva instancia de la clase DefaultHtmlGenerator.

Este constructor está obsoleto y se quitará en una versión futura. La alternativa recomendada es usar 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)

Parámetros

antiforgery
IAntiforgery

Instancia IAntiforgery que se usa para generar tokens antiforgería.

optionsAccessor
IOptions<MvcViewOptions>

Descriptor de acceso para MvcViewOptions.

htmlEncoder
HtmlEncoder

HtmlEncoder.

clientValidatorCache
Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache

Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache que proporciona una lista de IClientModelValidators.

Atributos

Se aplica a

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

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

Inicializa una nueva instancia de la clase 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)

Parámetros

antiforgery
IAntiforgery

Instancia IAntiforgery que se usa para generar tokens antiforgería.

optionsAccessor
IOptions<MvcViewOptions>

Descriptor de acceso para MvcViewOptions.

htmlEncoder
HtmlEncoder

HtmlEncoder.

Se aplica a

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

Inicializa una nueva instancia de la clase 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)

Parámetros

antiforgery
IAntiforgery

Instancia IAntiforgery que se usa para generar tokens antiforgería.

optionsAccessor
IOptions<MvcViewOptions>

Descriptor de acceso para MvcViewOptions.

htmlEncoder
HtmlEncoder

HtmlEncoder.

clientValidatorCache
Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache

Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache que proporciona una lista de IClientModelValidators.

Se aplica a