Sdílet prostřednictvím


IViewComponentSelector.SelectComponent(String) Metoda

Definice

Vybere komponentu zobrazení založenou na componentName.

public:
 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
Public Function SelectComponent (componentName As String) As ViewComponentDescriptor

Parametry

componentName
String

Název komponenty zobrazení.

Návraty

A ViewComponentDescriptor, nebo null pokud se nenajde žádná shoda.

Platí pro