// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Mvc { /// /// Specifies the name of an action. /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public sealed class ActionNameAttribute : Attribute { /// /// Initializes a new instance. /// /// The name of the action. public ActionNameAttribute(string name) { Name = name; } /// /// Gets the name of the action. /// public string Name { get; } } }