DefaultViewComponentSelector Class

Summary

Default implementation of [Microsoft.AspNet.Mvc.ViewComponents.IViewComponentSelector](Microsoft.AspNet.Mvc.ViewComponents.IViewComponentSelector.yml).

Syntax

public class DefaultViewComponentSelector : IViewComponentSelector

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ViewComponents.DefaultViewComponentSelector

Constructors

DefaultViewComponentSelector(Microsoft.AspNet.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider)

Creates a new [Microsoft.AspNet.Mvc.ViewComponents.DefaultViewComponentSelector](Microsoft.AspNet.Mvc.ViewComponents.DefaultViewComponentSelector.yml).

Arguments:
public DefaultViewComponentSelector(IViewComponentDescriptorCollectionProvider descriptorProvider)

Methods

SelectComponent(System.String)
Arguments:
  • componentName (System.String) –
Return type:

Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor

public ViewComponentDescriptor SelectComponent(string componentName)