ActionNameAttribute Class

Specifies the name of an action.

Namespace
Microsoft.AspNetCore.Mvc
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class ActionNameAttribute : Attribute, _Attribute
class Microsoft.AspNetCore.Mvc.ActionNameAttribute

Constructors

ActionNameAttribute(System.String)

Initializes a new Microsoft.AspNetCore.Mvc.ActionNameAttribute instance.

Arguments:name (System.String) – The name of the action.
public ActionNameAttribute(string name)

Properties

Microsoft.AspNetCore.Mvc.ActionNameAttribute.Name

Gets the name of the action.

Return type:System.String
public string Name { get; }