TagsAttribute 类

定义

在 中 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指定标记的集合。

适用于