Udostępnij za pośrednictwem


HttpPostAttribute Klasa

Definicja

Reprezentuje atrybut używany do ograniczania metody akcji tak, aby metoda obsługiwała tylko żądania HTTP POST.

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

Konstruktory

HttpPostAttribute()

Inicjuje nowe wystąpienie klasy HttpPostAttribute.

Metody

IsValidForRequest(ControllerContext, MethodInfo)

Określa, czy metoda akcji po żądaniu jest prawidłowa dla określonego kontekstu kontrolera.

Dotyczy