ExcludeFromDescriptionAttribute 类

定义

指示不应 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
继承
ExcludeFromDescriptionAttribute
属性
实现

构造函数

ExcludeFromDescriptionAttribute()

指示不应 Endpoint 将其包含在生成的 API 元数据中。

属性

ExcludeFromDescription

获取一个值,该值指示是否应为此终结点排除 OpenAPI 数据。 如果 true为 ,则不发出 API 元数据。

方法

ToString()

指示不应 Endpoint 将其包含在生成的 API 元数据中。

适用于

产品 版本
ASP.NET Core 6.0, 7.0, 8.0, 9.0, 10.0