aspnetcore/src/Microsoft.AspNetCore.Mvc.Core/ActionContextAttribute.cs

18 lines
606 B
C#

// 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
{
/// <summary>
/// Specifies that a controller property should be set with the current
/// <see cref="ActionContext"/> when creating the controller. The property must have a public
/// set method.
/// </summary>
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class ActionContextAttribute : Attribute
{
}
}