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 对象。

适用于