HttpOptionsAttribute Klasa

Definicja

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

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

Konstruktory

HttpOptionsAttribute()

Inicjuje nowe wystąpienie klasy HttpOptionsAttribute.

Metody

IsValidForRequest(ControllerContext, MethodInfo)

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

Dotyczy