Bagikan melalui


HttpPutAttribute Kelas

Definisi

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

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

Konstruktor

HttpPutAttribute()

Menginisialisasi instans baru kelas HttpPutAttribute.

Metode

IsValidForRequest(ControllerContext, MethodInfo)

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

Berlaku untuk