forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiExplorerSettingsAttribute.cs
More file actions
20 lines (19 loc) · 977 Bytes
/
ApiExplorerSettingsAttribute.cs
File metadata and controls
20 lines (19 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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.
namespace System.Web.Http.Description
{
/// <summary>
/// This attribute can be used on the controllers and actions to influence the behavior of <see cref="ApiExplorer"/>.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class ApiExplorerSettingsAttribute : Attribute
{
/// <summary>
/// Gets or sets a value indicating whether to exclude the controller or action from the ApiDescriptions generated by <see cref="ApiExplorer"/>.
/// </summary>
/// <value>
/// <c>true</c> if the controller or action should be ignored; otherwise, <c>false</c>.
/// </value>
public bool IgnoreApi { get; set; }
}
}