IViewComponentSelector Interface¶
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)
-