DefaultViewComponentSelector 类

定义

IViewComponentSelector 的默认实现。

public ref class DefaultViewComponentSelector : Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentSelector
public class DefaultViewComponentSelector : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelector
type DefaultViewComponentSelector = class
    interface IViewComponentSelector
Public Class DefaultViewComponentSelector
Implements IViewComponentSelector
继承
DefaultViewComponentSelector
实现

构造函数

DefaultViewComponentSelector(IViewComponentDescriptorCollectionProvider)

创建一个新的 DefaultViewComponentSelector

方法

SelectComponent(String)

基于 componentName选择视图组件。

适用于