共用方式為


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 選取檢視元件。

適用於