Aracılığıyla paylaş


ActionMethodSelectorAttribute Sınıf

Tanım

Belirli bir istek için bir eylemi etkinleştirmek veya devre dışı bırakmak için koşullu mantık uygulayabilen öznitelikler için temel sınıf. Bkz. IActionConstraint.

public ref class ActionMethodSelectorAttribute abstract : Attribute, Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public abstract class ActionMethodSelectorAttribute : Attribute, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ActionMethodSelectorAttribute = class
    inherit Attribute
    interface IActionConstraint
    interface IActionConstraintMetadata
Public MustInherit Class ActionMethodSelectorAttribute
Inherits Attribute
Implements IActionConstraint
Devralma
ActionMethodSelectorAttribute
Öznitelikler
Uygulamalar

Oluşturucular

ActionMethodSelectorAttribute()

Belirli bir istek için bir eylemi etkinleştirmek veya devre dışı bırakmak için koşullu mantık uygulayabilen öznitelikler için temel sınıf. Bkz. IActionConstraint.

Özellikler

Order

Kısıtlama sırası.

Yöntemler

Accept(ActionConstraintContext)

Eylemin seçim için geçerli bir aday olup olmadığını belirler.

IsValidForRequest(RouteContext, ActionDescriptor)

Eylem seçiminin belirtilen yol bağlamı için geçerli olup olmadığını belirler.

Şunlara uygulanır