Partilhar via


ModelBinderProviderContext.CreateBinder Método

Definição

Sobrecargas

CreateBinder(ModelMetadata)

Cria um IModelBinder para o determinado metadata.

CreateBinder(ModelMetadata, BindingInfo)

Cria um IModelBinder para o determinado metadata e bindingInfo.

CreateBinder(ModelMetadata)

Origem:
ModelBinderProviderContext.cs
Origem:
ModelBinderProviderContext.cs
Origem:
ModelBinderProviderContext.cs

Cria um IModelBinder para o determinado metadata.

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

Parâmetros

metadata
ModelMetadata

O ModelMetadata para o modelo.

Retornos

Um IModelBinder.

Aplica-se a

CreateBinder(ModelMetadata, BindingInfo)

Origem:
ModelBinderProviderContext.cs
Origem:
ModelBinderProviderContext.cs
Origem:
ModelBinderProviderContext.cs

Cria um IModelBinder para o determinado metadata e 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

Parâmetros

metadata
ModelMetadata

O ModelMetadata para o modelo.

bindingInfo
BindingInfo

O BindingInfo que deve ser usado para criar o associador.

Retornos

Um IModelBinder.

Aplica-se a