OpenApiRouteHandlerBuilderExtensions.WithDescription<TBuilder> 方法

定义

Metadata对于生成builder的所有终结点,将 添加到 IEndpointDescriptionMetadata

public static TBuilder WithDescription<TBuilder> (this TBuilder builder, string description) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member WithDescription : 'Builder * string -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function WithDescription(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, description As String) As TBuilder

类型参数

TBuilder

参数

builder
TBuilder

IEndpointConventionBuilder

description
String

表示终结点的详细说明的字符串。

返回

TBuilder

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

适用于