Partager via


ParameterBinder Constructeurs

Définition

Surcharges

ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator)
Obsolète.

Ce constructeur est obsolète et sera supprimé dans une version ultérieure. L’alternative recommandée est la surcharge qui prend également un MvcOptions accesseur et un ILoggerFactory.

Initialise une nouvelle instance de ParameterBinder.

ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator, IOptions<MvcOptions>, ILoggerFactory)

Initialise une nouvelle instance de ParameterBinder.

ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator)

Source:
ParameterBinder.cs
Source:
ParameterBinder.cs

Attention

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes a MvcOptions accessor and an ILoggerFactory .

Ce constructeur est obsolète et sera supprimé dans une version ultérieure. L’alternative recommandée est la surcharge qui prend également un MvcOptions accesseur et un ILoggerFactory.

Initialise une nouvelle instance de ParameterBinder.

public:
 ParameterBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinderFactory ^ modelBinderFactory, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IObjectModelValidator ^ validator);
public ParameterBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory modelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator validator);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes a MvcOptions accessor and an ILoggerFactory .")]
public ParameterBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory modelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator validator);
new Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator -> Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes a MvcOptions accessor and an ILoggerFactory .")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator -> Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder
Public Sub New (modelMetadataProvider As IModelMetadataProvider, modelBinderFactory As IModelBinderFactory, validator As IObjectModelValidator)

Paramètres

modelMetadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

modelBinderFactory
IModelBinderFactory

L’IModelBinderFactoryopérateur

Attributs

S’applique à

ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator, IOptions<MvcOptions>, ILoggerFactory)

Source:
ParameterBinder.cs
Source:
ParameterBinder.cs
Source:
ParameterBinder.cs

Initialise une nouvelle instance de ParameterBinder.

public:
 ParameterBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinderFactory ^ modelBinderFactory, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IObjectModelValidator ^ validator, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ mvcOptions, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public ParameterBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory modelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator validator, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> mvcOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder
Public Sub New (modelMetadataProvider As IModelMetadataProvider, modelBinderFactory As IModelBinderFactory, validator As IObjectModelValidator, mvcOptions As IOptions(Of MvcOptions), loggerFactory As ILoggerFactory)

Paramètres

modelMetadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

modelBinderFactory
IModelBinderFactory

L’IModelBinderFactoryopérateur

mvcOptions
IOptions<MvcOptions>

Accesseur MvcOptions .

loggerFactory
ILoggerFactory

L’ILoggerFactoryopérateur

Remarques

Le mvcOptions paramètre est actuellement ignoré.

S’applique à