Bagikan melalui


HttpPostAttribute Kelas

Definisi

Mewakili atribut yang digunakan untuk membatasi metode tindakan sehingga metode hanya menangani permintaan HTTP POST.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class HttpPostAttribute : System.Web.Mvc.ActionMethodSelectorAttribute
type HttpPostAttribute = class
    inherit ActionMethodSelectorAttribute
Public NotInheritable Class HttpPostAttribute
Inherits ActionMethodSelectorAttribute
Warisan
Atribut

Konstruktor

HttpPostAttribute()

Menginisialisasi instans baru kelas HttpPostAttribute.

Metode

IsValidForRequest(ControllerContext, MethodInfo)

Menentukan apakah permintaan posting metode tindakan valid untuk konteks pengontrol yang ditentukan.

Berlaku untuk