CollectionModelBinder<TElement> Constructeurs

Définition

Surcharges

CollectionModelBinder<TElement>(IModelBinder)
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 ILoggerFactory.

Crée un CollectionModelBinder<TElement>.

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory)

Crée un CollectionModelBinder<TElement>.

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean)

Crée un CollectionModelBinder<TElement>.

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean, MvcOptions)

Crée un CollectionModelBinder<TElement>.

CollectionModelBinder<TElement>(IModelBinder)

Source:
CollectionModelBinder.cs
Source:
CollectionModelBinder.cs

Attention

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes 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 ILoggerFactory.

Crée un CollectionModelBinder<TElement>.

public:
 CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.")]
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder)

Paramètres

elementBinder
IModelBinder

pour les IModelBinder éléments de liaison.

Attributs

S’applique à

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory)

Source:
CollectionModelBinder.cs
Source:
CollectionModelBinder.cs
public:
 CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory)

Paramètres

elementBinder
IModelBinder

pour la IModelBinder liaison TElement.

loggerFactory
ILoggerFactory

L’ILoggerFactoryopérateur

Remarques

Le classeur n’ajoute pas d’erreur pour un modèle de niveau supérieur indépendant, même si IsBindingRequired est true.

S’applique à

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean)

Source:
CollectionModelBinder.cs
public:
 CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, bool allowValidatingTopLevelNodes);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory, allowValidatingTopLevelNodes As Boolean)

Paramètres

elementBinder
IModelBinder

pour la IModelBinder liaison TElement.

loggerFactory
ILoggerFactory

L’ILoggerFactoryopérateur

allowValidatingTopLevelNodes
Boolean

Indication que la validation des modèles de niveau supérieur est activée. Si true et IsBindingRequired concerne true un modèle de niveau supérieur, le classeur ajoute une ModelStateDictionary erreur lorsque le modèle n’est pas lié.

S’applique à

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean, MvcOptions)

public:
 CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, bool allowValidatingTopLevelNodes, Microsoft::AspNetCore::Mvc::MvcOptions ^ mvcOptions);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes, Microsoft.AspNetCore.Mvc.MvcOptions mvcOptions);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory * bool * Microsoft.AspNetCore.Mvc.MvcOptions -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory, allowValidatingTopLevelNodes As Boolean, mvcOptions As MvcOptions)

Paramètres

elementBinder
IModelBinder

pour la IModelBinder liaison TElement.

loggerFactory
ILoggerFactory

L’ILoggerFactoryopérateur

allowValidatingTopLevelNodes
Boolean

Indication que la validation des modèles de niveau supérieur est activée. Si true et IsBindingRequired concerne true un modèle de niveau supérieur, le classeur ajoute une ModelStateDictionary erreur lorsque le modèle n’est pas lié.

mvcOptions
MvcOptions

L’MvcOptionsopérateur

Remarques

Il s’agit du constructeur préféré CollectionModelBinder<TElement> .

S’applique à