Share via


IViewComponentSelector.SelectComponent(String) Method

Definition

Selects a view component based on 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

Parameters

componentName
String

The view component name.

Returns

A ViewComponentDescriptor, or null if no match is found.

Applies to