File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/Mvc/Mvc.Core/src/Infrastructure Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 6
6
namespace Microsoft . AspNetCore . Mvc . Infrastructure
7
7
{
8
8
/// <summary>
9
- /// Attribute annoted on ActionResult constructor and helper method parameters to indicate
9
+ /// Attribute annotated on ActionResult constructor and helper method parameters to indicate
10
10
/// that the parameter is used to set the "statusCode" for the ActionResult.
11
11
/// <para>
12
12
/// Analyzers match this parameter by type name. This allows users to annotate custom results \ custom helpers
13
- /// with a user defined attribute without having to expose this type.
13
+ /// with a user- defined attribute without having to expose this type.
14
14
/// </para>
15
15
/// <para>
16
16
/// This attribute is intentionally marked Inherited=false since the analyzer does not walk the inheritance graph.
17
17
/// </para>
18
18
/// </summary>
19
19
/// <example>
20
- /// StatusCodeResult([ActionResultStatusCodeParameter] int statusCode)
20
+ /// Annotated constructor parameter:
21
+ /// <code>
22
+ /// public StatusCodeResult([ActionResultStatusCode] int statusCode)
23
+ /// {
24
+ /// StatusCode = statusCode;
25
+ /// }
26
+ /// </code>
21
27
/// </example>
22
28
[ AttributeUsage ( AttributeTargets . Parameter , AllowMultiple = false , Inherited = false ) ]
23
29
public sealed class ActionResultStatusCodeAttribute : Attribute
You can’t perform that action at this time.
0 commit comments