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
[<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
屬性
實作

建構函式

名稱 Description
ExcludeFromDescriptionAttribute()

表示這 Endpoint 不應該包含在產生的 API 中繼資料中。

屬性

名稱 Description
ExcludeFromDescription

取得值,指出是否應該為此端點排除 OpenAPI 資料。 如果 true 為 ,則不會發出 API 中繼資料。

方法

名稱 Description
ToString()

表示這 Endpoint 不應該包含在產生的 API 中繼資料中。

適用於