Partager via


DefaultModelBindingContext.CreateBindingContext Méthode

Définition

Crée une opération DefaultModelBindingContext de liaison de modèle de niveau supérieur.

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

Paramètres

actionContext
ActionContext

ActionContext associé à l’opération de liaison.

valueProvider
IValueProvider

à utiliser pour la IValueProvider liaison.

metadata
ModelMetadata

ModelMetadata associé au modèle.

bindingInfo
BindingInfo

BindingInfo associé au modèle.

modelName
String

Nom de la propriété ou du paramètre lié.

Retours

Nouvelle instance de DefaultModelBindingContext.

S’applique à