共用方式為


HubEndpointConventionBuilder.Add(Action<EndpointBuilder>) 方法

定義

將指定的慣例加入至產生器。 慣例可用來自訂 EndpointBuilder 實例。

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

參數

convention
Action<EndpointBuilder>

要加入至產生器的慣例。

實作

適用於