FromBodyAttribute Classe

Définition

Spécifie qu’un paramètre ou une propriété doit être lié à l’aide du corps de la requête.

public ref class FromBodyAttribute : Attribute, Microsoft::AspNetCore::Mvc::ModelBinding::IBindingSourceMetadata
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class FromBodyAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class FromBodyAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IFromBodyMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type FromBodyAttribute = class
    inherit Attribute
    interface IBindingSourceMetadata
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type FromBodyAttribute = class
    inherit Attribute
    interface IBindingSourceMetadata
    interface IFromBodyMetadata
Public Class FromBodyAttribute
Inherits Attribute
Implements IBindingSourceMetadata
Public Class FromBodyAttribute
Inherits Attribute
Implements IBindingSourceMetadata, IFromBodyMetadata
Héritage
FromBodyAttribute
Attributs
Implémente

Constructeurs

FromBodyAttribute()

Spécifie qu’un paramètre ou une propriété doit être lié à l’aide du corps de la requête.

Propriétés

BindingSource

Obtient BindingSource.

EmptyBodyBehavior

Obtient ou définit une valeur qui détermine si la liaison de modèle de corps doit traiter l’entrée vide comme valide.

Implémentations d’interfaces explicites

IFromBodyMetadata.AllowEmpty

Spécifie qu’un paramètre ou une propriété doit être lié à l’aide du corps de la requête.

S’applique à