Sdílet prostřednictvím


DefaultApplicationPartFactory.GetDefaultApplicationParts(Assembly) Metoda

Definice

Získá sekvenci ApplicationPart instancí, které jsou vytvořeny touto instancí .DefaultApplicationPartFactory

Aplikace můžou tuto metodu použít k získání stejného chování, které tato továrna vytváří během výchozího zjišťování částí 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)

Parametry

assembly
Assembly

Hodnota Assembly

Návraty

Posloupnost ApplicationPart instancí.

Platí pro