// 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.Infrastructure
{
///
/// Attribute annoted on ActionResult constructor and helper method parameters to indicate
/// that the parameter is used to set the "statusCode" for the ActionResult.
///
/// Analyzers match this parameter by type name. This allows users to annotate custom results \ custom helpers
/// with a user defined attribute without having to expose this type.
///
///
/// This attribute is intentionally marked Inherited=false since the analyzer does not walk the inheritance graph.
///
///
///
/// StatusCodeResult([ActionResultStatusCodeParameter] int statusCode)
///
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
internal sealed class ActionResultStatusCodeAttribute : Attribute
{
}
}