OpenApiRouteHandlerBuilderExtensions.WithSummary<TBuilder> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
針對 IEndpointSummaryMetadata 所產生的 builder
所有端點新增至 Metadata 。
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
- summary
- String
字串,表示端點的簡短描述。
傳回
TBuilder
RouteHandlerBuilder,可用來進一步自訂端點。