Bagikan melalui


HttpDeleteAttribute Kelas

Definisi

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

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

Konstruktor

HttpDeleteAttribute()

Menginisialisasi instans baru kelas HttpDeleteAttribute.

Metode

IsValidForRequest(ControllerContext, MethodInfo)

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

Berlaku untuk