ComponentEndpointConventionBuilder.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>

要添加到生成器的约定。

实现

适用于