NonActionAttribute Klasse

Definition

Stellt ein Attribut dar, mit dem angegeben wird, dass eine Controllermethode keine Aktionsmethode ist.

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

Konstruktoren

NonActionAttribute()

Initialisiert eine neue Instanz der NonActionAttribute-Klasse.

Methoden

IsValidForRequest(ControllerContext, MethodInfo)

Bestimmt, ob das Attribut eine Methode markiert, wenn diese keine Aktionsmethode ist, indem der angegebene Controllerkontext verwendet wird.

Gilt für: