FromBodyAttribute Classe

Definizione

Specifica che un parametro o una proprietà deve essere associato utilizzando il corpo della richiesta.

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
Ereditarietà
FromBodyAttribute
Attributi
Implementazioni

Costruttori

FromBodyAttribute()

Specifica che un parametro o una proprietà deve essere associato utilizzando il corpo della richiesta.

Proprietà

BindingSource

Ottiene l'oggetto BindingSource.

EmptyBodyBehavior

Ottiene o imposta un valore che determina se l'associazione del modello del corpo deve considerare l'input vuoto come valido.

Implementazioni dell'interfaccia esplicita

IFromBodyMetadata.AllowEmpty

Specifica che un parametro o una proprietà deve essere associato utilizzando il corpo della richiesta.

Si applica a