ApiExplorerSettingsAttribute 類別

定義

控制相關聯控制器類別或動作方法之 的可見度和組名 ApiDescription

public ref class ApiExplorerSettingsAttribute : Attribute, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiDescriptionGroupNameProvider, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiDescriptionVisibilityProvider
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class ApiExplorerSettingsAttribute : Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupNameProvider, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionVisibilityProvider
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ApiExplorerSettingsAttribute = class
    inherit Attribute
    interface IApiDescriptionGroupNameProvider
    interface IApiDescriptionVisibilityProvider
Public Class ApiExplorerSettingsAttribute
Inherits Attribute
Implements IApiDescriptionGroupNameProvider, IApiDescriptionVisibilityProvider
繼承
ApiExplorerSettingsAttribute
屬性
實作

建構函式

ApiExplorerSettingsAttribute()

控制相關聯控制器類別或動作方法之 的可見度和組名 ApiDescription

屬性

GroupName

相關聯動作或控制器之 的組名 ApiDescription

IgnoreApi

如果 true 這樣,則不會 ApiDescription 為相關聯的控制器或動作建立任何物件。

適用於