Partager via


ModelBinderProviderContext.CreateBinder Méthode

Définition

Surcharges

CreateBinder(ModelMetadata)

Crée un élément IModelBinder pour l'objet metadata spécifié.

CreateBinder(ModelMetadata, BindingInfo)

Crée un IModelBinder pour le donné metadata et bindingInfo.

CreateBinder(ModelMetadata)

Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs

Crée un élément IModelBinder pour l'objet metadata spécifié.

public:
 abstract Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ CreateBinder(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata);
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata);
abstract member CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
Public MustOverride Function CreateBinder (metadata As ModelMetadata) As IModelBinder

Paramètres

metadata
ModelMetadata

ModelMetadata pour le modèle.

Retours

Élément IModelBinder.

S’applique à

CreateBinder(ModelMetadata, BindingInfo)

Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs

Crée un IModelBinder pour le donné metadata et bindingInfo.

public:
 virtual Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ CreateBinder(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Microsoft::AspNetCore::Mvc::ModelBinding::BindingInfo ^ bindingInfo);
public virtual Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo bindingInfo);
abstract member CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
override this.CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
Public Overridable Function CreateBinder (metadata As ModelMetadata, bindingInfo As BindingInfo) As IModelBinder

Paramètres

metadata
ModelMetadata

ModelMetadata pour le modèle.

bindingInfo
BindingInfo

BindingInfo qui doit être utilisé pour créer le classeur.

Retours

Élément IModelBinder.

S’applique à