Compartir a través de


ModelBinderProviderContext.CreateBinder Método

Definición

Sobrecargas

CreateBinder(ModelMetadata)

Crea una interfaz IModelBinder para la interfaz metadata especificada.

CreateBinder(ModelMetadata, BindingInfo)

Crea un IModelBinder objeto para los especificados metadata y bindingInfo.

CreateBinder(ModelMetadata)

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

Crea una interfaz IModelBinder para la interfaz metadata especificada.

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

ModelMetadata para el modelo.

Devoluciones

Una clase IModelBinder.

Se aplica a

CreateBinder(ModelMetadata, BindingInfo)

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

Crea un IModelBinder objeto para los especificados metadata y 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

ModelMetadata para el modelo.

bindingInfo
BindingInfo

BindingInfo que se debe usar para crear el enlazador.

Devoluciones

Una clase IModelBinder.

Se aplica a