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