HttpOptionsAttribute Klasse

Definition

Steht für ein Attribut, mit dem eine Aktionsmethode so eingeschränkt wird, dass nur HTTP OPTIONS-Anforderungen von der Methode verarbeitet werden können.

[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
Vererbung
Attribute

Konstruktoren

HttpOptionsAttribute()

Initialisiert eine neue Instanz der HttpOptionsAttribute-Klasse.

Methoden

IsValidForRequest(ControllerContext, MethodInfo)

Bestimmt, ob die Aktionsmethodenanforderung für den angegebenen Controllerkontext gültig ist.

Gilt für: