TagsAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 中 Metadata指定标记的集合。
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class TagsAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.ITagsMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type TagsAttribute = class
inherit Attribute
interface ITagsMetadata
Public NotInheritable Class TagsAttribute
Inherits Attribute
Implements ITagsMetadata
- 继承
-
TagsAttribute
- 属性
- 实现
注解
OpenAPI 规范支持标记分类,以将操作分类为相关组。 这些标记通常包含在生成的规范中,通常用于在 UI 中按标记对操作进行分组。
构造函数
TagsAttribute(String[]) |
初始化 TagsAttribute 的实例。 |
属性
Tags |
获取与终结点关联的标记的集合。 |
方法
ToString() |
在 中 Metadata指定标记的集合。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈