Bagikan melalui


FromHeaderAttribute Kelas

Definisi

Menentukan bahwa parameter atau properti harus terikat menggunakan header permintaan.

public ref class FromHeaderAttribute : Attribute, Microsoft::AspNetCore::Mvc::ModelBinding::IBindingSourceMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelNameProvider
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class FromHeaderAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class FromHeaderAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IFromHeaderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type FromHeaderAttribute = class
    inherit Attribute
    interface IBindingSourceMetadata
    interface IModelNameProvider
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type FromHeaderAttribute = class
    inherit Attribute
    interface IBindingSourceMetadata
    interface IModelNameProvider
    interface IFromHeaderMetadata
Public Class FromHeaderAttribute
Inherits Attribute
Implements IBindingSourceMetadata, IModelNameProvider
Public Class FromHeaderAttribute
Inherits Attribute
Implements IBindingSourceMetadata, IFromHeaderMetadata, IModelNameProvider
Warisan
FromHeaderAttribute
Atribut
Penerapan

Konstruktor

FromHeaderAttribute()

Menentukan bahwa parameter atau properti harus terikat menggunakan header permintaan.

Properti

BindingSource

BindingSourceMendapatkan .

Name

Nama header permintaan.

Berlaku untuk