共用方式為


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 的執行個體。

適用於