CompiledRazorAssemblyApplicationPartFactory.GetDefaultApplicationParts 方法

定义

获取 此 实例创建的实例序列ApplicationPartDefaultApplicationPartFactory

应用程序可以使用此方法获取此工厂在 MVC 的默认部件发现期间产生的相同行为。

public:
 static System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::ApplicationParts::ApplicationPart ^> ^ GetDefaultApplicationParts(System::Reflection::Assembly ^ assembly);
public static System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPart> GetDefaultApplicationParts (System.Reflection.Assembly assembly);
static member GetDefaultApplicationParts : System.Reflection.Assembly -> seq<Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPart>
Public Shared Iterator Function GetDefaultApplicationParts (assembly As Assembly) As IEnumerable(Of ApplicationPart)
Public Shared Function GetDefaultApplicationParts (assembly As Assembly) As IEnumerable(Of ApplicationPart)

参数

assembly
Assembly

Assembly

返回

实例序列 ApplicationPart

适用于