ApplicationPartFactory.GetApplicationPartFactory(Assembly) 方法

定义

ApplicationPartFactory获取指定程序集的 。

程序集可以使用 指定 ApplicationPartFactoryProvideApplicationPartFactoryAttribute。 否则, DefaultApplicationPartFactory 使用 。

public:
 static Microsoft::AspNetCore::Mvc::ApplicationParts::ApplicationPartFactory ^ GetApplicationPartFactory(System::Reflection::Assembly ^ assembly);
public static Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory GetApplicationPartFactory (System.Reflection.Assembly assembly);
static member GetApplicationPartFactory : System.Reflection.Assembly -> Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory
Public Shared Function GetApplicationPartFactory (assembly As Assembly) As ApplicationPartFactory

参数

assembly
Assembly

Assembly

返回

ApplicationPartFactory 的一个实例。

适用于