FromBodyAttribute Klasa

Definicja

Określa, że parametr lub właściwość powinny być powiązane przy użyciu treści żądania.

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
Dziedziczenie
FromBodyAttribute
Atrybuty
Implementuje

Konstruktory

FromBodyAttribute()

Określa, że parametr lub właściwość powinny być powiązane przy użyciu treści żądania.

Właściwości

BindingSource

Pobiera klasę BindingSource.

EmptyBodyBehavior

Pobiera lub ustawia wartość, która decyduje, czy powiązanie modelu treści powinno traktować puste dane wejściowe jako prawidłowe.

Jawne implementacje interfejsu

IFromBodyMetadata.AllowEmpty

Określa, że parametr lub właściwość powinny być powiązane przy użyciu treści żądania.

Dotyczy