共用方式為


IEndpointConventionBuilder.Finally(Action<EndpointBuilder>) 方法

定義

在透過 註冊的慣例之後,註冊指定的執行慣例 Add(Action<EndpointBuilder>)

public virtual void Finally (Action<Microsoft.AspNetCore.Builder.EndpointBuilder> finallyConvention);
abstract member Finally : Action<Microsoft.AspNetCore.Builder.EndpointBuilder> -> unit
override this.Finally : Action<Microsoft.AspNetCore.Builder.EndpointBuilder> -> unit
Public Overridable Sub Finally (finallyConvention As Action(Of EndpointBuilder))

參數

finallyConvention
Action<EndpointBuilder>

要加入至產生器的慣例。

適用於