FromBodyAttribute Класс

Определение

Указывает, что параметр или свойство должны быть привязаны с помощью текста запроса.

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
Наследование
FromBodyAttribute
Атрибуты
Реализации

Конструкторы

FromBodyAttribute()

Указывает, что параметр или свойство должны быть привязаны с помощью текста запроса.

Свойства

BindingSource

Возвращает набор BindingSource.

EmptyBodyBehavior

Возвращает или задает значение, определяющее, должна ли привязка модели тела обрабатывать пустые входные данные как допустимые.

Явные реализации интерфейса

IFromBodyMetadata.AllowEmpty

Указывает, что параметр или свойство должны быть привязаны с помощью текста запроса.

Применяется к