Bagikan melalui


HttpPatchAttribute Kelas

Definisi

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

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

Konstruktor

HttpPatchAttribute()

Menginisialisasi instans baru kelas HttpPatchAttribute.

Metode

IsValidForRequest(ControllerContext, MethodInfo)

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

Berlaku untuk