Compartir a través de


DefaultModelBindingContext.CreateBindingContext Método

Definición

Crea un nuevo DefaultModelBindingContext para la operación de enlace de modelos de nivel superior.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext ^ CreateBindingContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Microsoft::AspNetCore::Mvc::ModelBinding::BindingInfo ^ bindingInfo, System::String ^ modelName);
public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext CreateBindingContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo bindingInfo, string modelName);
public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext CreateBindingContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo? bindingInfo, string modelName);
static member CreateBindingContext : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo * string -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext
Public Shared Function CreateBindingContext (actionContext As ActionContext, valueProvider As IValueProvider, metadata As ModelMetadata, bindingInfo As BindingInfo, modelName As String) As ModelBindingContext

Parámetros

actionContext
ActionContext

ActionContext asociado a la operación de enlace.

valueProvider
IValueProvider

que IValueProvider se va a usar para el enlace.

metadata
ModelMetadata

ModelMetadata asociado al modelo.

bindingInfo
BindingInfo

BindingInfo asociado al modelo.

modelName
String

Nombre de la propiedad o parámetro que se va a enlazar.

Devoluciones

Nueva instancia de DefaultModelBindingContext.

Se aplica a