共用方式為


CompiledRazorAssemblyApplicationPartFactory.GetDefaultApplicationParts 方法

定義

取得這個 實例所建立的 ApplicationPart 實例 DefaultApplicationPartFactory 序列。

應用程式可以使用這個方法,在 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

適用於