Sdílet prostřednictvím


HttpPatchAttribute Třída

Definice

Představuje atribut, který se používá k omezení metody akce tak, aby metoda zpracovávala pouze požadavky 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
Dědičnost
Atributy

Konstruktory

HttpPatchAttribute()

Inicializuje novou instanci HttpPatchAttribute třídy.

Metody

IsValidForRequest(ControllerContext, MethodInfo)

Určuje, zda je požadavek metody akce platný pro zadaný kontext kontroleru.

Platí pro