Dela via


MvcCoreMvcBuilderExtensions.AddApplicationPart(IMvcBuilder, Assembly) Method

Definition

Adds an ApplicationPart to the list of ApplicationParts on the PartManager.

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

Parameters

builder
IMvcBuilder

The IMvcBuilder.

assembly
Assembly

The Assembly of the ApplicationPart.

Returns

The IMvcBuilder.

Applies to