OpenApiRouteHandlerBuilderExtensions.ExcludeFromDescription 方法

定义

重载

ExcludeFromDescription(RouteHandlerBuilder)

IExcludeFromDescriptionMetadata Metadata将 添加到 由 生成的所有终结点的 builder

ExcludeFromDescription<TBuilder>(TBuilder)

IExcludeFromDescriptionMetadata Metadata将 添加到 由 生成的所有终结点的 builder

ExcludeFromDescription(RouteHandlerBuilder)

Source:
OpenApiRouteHandlerBuilderExtensions.cs

IExcludeFromDescriptionMetadata Metadata将 添加到 由 生成的所有终结点的 builder

public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder ExcludeFromDescription (this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder);
static member ExcludeFromDescription : Microsoft.AspNetCore.Builder.RouteHandlerBuilder -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function ExcludeFromDescription (builder As RouteHandlerBuilder) As RouteHandlerBuilder

参数

返回

可用于 RouteHandlerBuilder 进一步自定义终结点的 。

适用于

ExcludeFromDescription<TBuilder>(TBuilder)

Source:
OpenApiRouteHandlerBuilderExtensions.cs

IExcludeFromDescriptionMetadata Metadata将 添加到 由 生成的所有终结点的 builder

public static TBuilder ExcludeFromDescription<TBuilder> (this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member ExcludeFromDescription : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function ExcludeFromDescription(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder) As TBuilder

类型参数

TBuilder

参数

builder
TBuilder

IEndpointConventionBuilder

返回

TBuilder

可用于 IEndpointConventionBuilder 进一步自定义终结点的 。

适用于