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