IViewComponentSelector.SelectComponent(String) 方法

定义

基于 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

参数

componentName
String

视图组件名称。

返回

ViewComponentDescriptor如果找不到匹配项,则null为 或 。

适用于