共用方式為


RoutingEndpointConventionBuilderExtensions.WithMetadata<TBuilder> 方法

定義

針對 所產生的 builder 所有產生器,將提供的中繼資料 items 加入 Metadata 至 。

public:
generic <typename TBuilder>
 where TBuilder : Microsoft::AspNetCore::Builder::IEndpointConventionBuilder[System::Runtime::CompilerServices::Extension]
 static TBuilder WithMetadata(TBuilder builder, ... cli::array <System::Object ^> ^ items);
public static TBuilder WithMetadata<TBuilder> (this TBuilder builder, params object[] items) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member WithMetadata : 'Builder * obj[] -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function WithMetadata(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, ParamArray items As Object()) As TBuilder

類型參數

TBuilder

參數

builder
TBuilder

IEndpointConventionBuilder

items
Object[]

中繼資料專案的集合。

傳回

TBuilder

IEndpointConventionBuilder

適用於