ModelBinderAttribute Constructeurs

Définition

Surcharges

ModelBinderAttribute()

Initialise une nouvelle instance de ModelBinderAttribute.

ModelBinderAttribute(Type)

Initialise une nouvelle instance de ModelBinderAttribute.

ModelBinderAttribute()

Initialise une nouvelle instance de ModelBinderAttribute.

public:
 ModelBinderAttribute();
public ModelBinderAttribute ();
Public Sub New ()

S’applique à

ModelBinderAttribute(Type)

Initialise une nouvelle instance de ModelBinderAttribute.

public:
 ModelBinderAttribute(Type ^ binderType);
public ModelBinderAttribute (Type binderType);
new Microsoft.AspNetCore.Mvc.ModelBinderAttribute : Type -> Microsoft.AspNetCore.Mvc.ModelBinderAttribute
Public Sub New (binderType As Type)

Paramètres

binderType
Type

Type qui implémente IModelBinder.

Remarques

Sous-classez cet attribut et définissez BindingSource si Custom n’est pas correct pour le spécifié binderType.

S’applique à