MvcCoreMvcBuilderExtensions.AddApplicationPart(IMvcBuilder, Assembly) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IMvcBuilder ^ AddApplicationPart(Microsoft::Extensions::DependencyInjection::IMvcBuilder ^ builder, System::Reflection::Assembly ^ assembly);
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

IMvcBuilder

The IMvcBuilder.

Applies to