Dela via


DefaultViewComponentSelector.SelectComponent(String) Method

Definition

Selects a view component based on componentName.

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

Parameters

componentName
String

The view component name.

Returns

A ViewComponentDescriptor, or null if no match is found.

Implements

Applies to