Udostępnij za pośrednictwem


HttpPatchAttribute Klasa

Definicja

Reprezentuje atrybut używany do ograniczania metody akcji tak, aby metoda obsługiwała tylko żądania 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
Dziedziczenie
Atrybuty

Konstruktory

HttpPatchAttribute()

Inicjuje nowe wystąpienie klasy HttpPatchAttribute.

Metody

IsValidForRequest(ControllerContext, MethodInfo)

Określa, czy żądanie metody akcji jest prawidłowe dla określonego kontekstu kontrolera.

Dotyczy