Aracılığıyla paylaş


NonActionAttribute Sınıf

Tanım

Denetleyici yönteminin bir eylem yöntemi olmadığını belirtmek için kullanılan özniteliği temsil eder.

[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
Devralma
Öznitelikler

Oluşturucular

NonActionAttribute()

NonActionAttribute sınıfının yeni bir örneğini başlatır.

Yöntemler

IsValidForRequest(ControllerContext, MethodInfo)

Özniteliğin belirtilen denetleyici bağlamını kullanarak eylem yöntemi olmayan bir yöntemi işaretleyip işaretlemediğini belirler.

Şunlara uygulanır