IViewComponentSelector Interface

Summary

Selects a View Component based on a View Component name.

Syntax

public interface IViewComponentSelector

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.ViewComponents.IViewComponentSelector

Methods

SelectComponent(System.String)

Selects a View Component based on <paramref name=”componentName” />.

Arguments:
  • componentName (System.String) – The View Component name.
Return type:

Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor

Returns:

A [Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor](Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor.yml), or <c>null</c> if no match is found.

ViewComponentDescriptor SelectComponent(string componentName)