共用方式為


MvcCoreMvcBuilderExtensions.AddApplicationPart(IMvcBuilder, Assembly) 方法

定義

ApplicationPart將 加入 至 上的 PartManager 清單 ApplicationParts

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddApplicationPart (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Reflection.Assembly assembly);
static member AddApplicationPart : Microsoft.Extensions.DependencyInjection.IMvcBuilder * System.Reflection.Assembly -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddApplicationPart (builder As IMvcBuilder, assembly As Assembly) As IMvcBuilder

參數

傳回

IMvcBuilder

適用於