اقرأ باللغة الإنجليزية

مشاركة عبر


ActionContextAttribute Class

Definition

Specifies that a controller property should be set with the current ActionContext when creating the controller. The property must have a public set method.

C#
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class ActionContextAttribute : Attribute
Inheritance
ActionContextAttribute
Attributes

Constructors

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0