OpenApiRouteHandlerBuilderExtensions.WithSummary<TBuilder> 方法

定义

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

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

类型参数

TBuilder

参数

builder
TBuilder

IEndpointConventionBuilder

summary
String

表示终结点的简要说明的字符串。

返回

TBuilder

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

适用于