共用方式為


DefaultApplicationPartFactory.GetDefaultApplicationParts(Assembly) 方法

定義

取得這個 實例所建立的 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

適用於