FromBodyAttribute Sınıf

Tanım

Bir parametrenin veya özelliğin istek gövdesi kullanılarak bağlanması gerektiğini belirtir.

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
Devralma
FromBodyAttribute
Öznitelikler
Uygulamalar

Oluşturucular

FromBodyAttribute()

Bir parametrenin veya özelliğin istek gövdesi kullanılarak bağlanması gerektiğini belirtir.

Özellikler

BindingSource

BindingSource öğesini alır.

EmptyBodyBehavior

Gövde modeli bağlamanın boş girişi geçerli olarak ele alıp almayacağına karar veren bir değeri alır veya ayarlar.

Belirtik Arabirim Kullanımları

IFromBodyMetadata.AllowEmpty

Bir parametrenin veya özelliğin istek gövdesi kullanılarak bağlanması gerektiğini belirtir.

Şunlara uygulanır