RoutingEndpointConventionBuilderExtensions.WithMetadata<TBuilder> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
針對 所產生的 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
- items
- Object[]
中繼資料專案的集合。
傳回
TBuilder