ExcludeFromDescriptionAttribute 类
本文内容
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示不应 Endpoint 将其包含在生成的 API 元数据中。
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ExcludeFromDescriptionAttribute : Attribute, Microsoft.AspNetCore.Routing.IExcludeFromDescriptionMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ExcludeFromDescriptionAttribute = class
inherit Attribute
interface IExcludeFromDescriptionMetadata
Public NotInheritable Class ExcludeFromDescriptionAttribute
Inherits Attribute
Implements IExcludeFromDescriptionMetadata
- 继承
-
ExcludeFromDescriptionAttribute
- 属性
- 实现
构造函数
Exclude |
指示不应 Endpoint 将其包含在生成的 API 元数据中。 |
属性
Exclude |
获取一个值,该值指示是否应为此终结点排除 OpenAPI 数据。 如果 |
方法
To |
指示不应 Endpoint 将其包含在生成的 API 元数据中。 |
适用于
产品 | 版本 |
---|---|
ASP.NET Core | 6.0, 7.0, 8.0, 9.0, 10.0 |