Udostępnij za pośrednictwem


HttpPutAttribute Klasa

Definicja

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

Konstruktory

HttpPutAttribute()

Inicjuje nowe wystąpienie klasy HttpPutAttribute.

Metody

IsValidForRequest(ControllerContext, MethodInfo)

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

Dotyczy