Sdílet prostřednictvím


DefaultViewComponentSelector.SelectComponent(String) Metoda

Definice

Vybere komponentu zobrazení na componentNamezákladě .

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentDescriptor ^ SelectComponent(System::String ^ componentName);
public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor SelectComponent (string componentName);
abstract member SelectComponent : string -> Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor
override this.SelectComponent : string -> Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor
Public Function SelectComponent (componentName As String) As ViewComponentDescriptor

Parametry

componentName
String

Název komponenty zobrazení.

Návraty

A ViewComponentDescriptor, nebo null pokud nebyla nalezena žádná shoda.

Implementuje

Platí pro