EndpointDescriptionAttribute 類別

定義

指定 中 Metadata 端點的描述。

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class EndpointDescriptionAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IEndpointDescriptionMetadata
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type EndpointDescriptionAttribute = class
    inherit Attribute
    interface IEndpointDescriptionMetadata
Public NotInheritable Class EndpointDescriptionAttribute
Inherits Attribute
Implements IEndpointDescriptionMetadata
繼承
EndpointDescriptionAttribute
屬性
實作

備註

OpenAPI 規格支援作業和參數的描述屬性,可用來標注具有其行為詳細多行描述元的端點。

建構函式

EndpointDescriptionAttribute(String)

初始化 EndpointDescriptionAttribute 的執行個體。

屬性

Description

取得與端點相關聯的描述。

方法

ToString()

指定 中 Metadata 端點的描述。

適用於