17 instantiations of ViewComponent
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponent.cs (1)
23[ViewComponent]
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
171[ViewComponent(Name = "AttributesAreGreat")]
ViewComponents\DefaultViewComponentSelectorTest.cs (6)
197[ViewComponent] 203[ViewComponent(Name = "Namespace1.Ambiguous")] 209[ViewComponent(Name = "Namespace2.Ambiguous")] 215[ViewComponent(Name = "CoolNameSpace.FullNameInAttribute")] 221[ViewComponent(Name = "Ambiguous.Name")] 231[ViewComponent(Name = "NonAmbiguousName")]
ViewComponents\ViewComponentConventionsTest.cs (3)
149[ViewComponent] 158[ViewComponent(Name = "Name")] 167[ViewComponent(Name = "New.Name")]
ViewComponents\ViewComponentFeatureProviderTest.cs (1)
69[ViewComponent(Name = "AttributesAreGreat")]
RazorWebSite (4)
Components\ComponentForViewWithPaths.cs (1)
8[ViewComponent(Name = "ComponentForViewWithPaths")]
Components\ComponentThatSetsTitle.cs (1)
8[ViewComponent(Name = "ComponentThatSetsTitle")]
Components\ComponentWithFlush.cs (1)
8[ViewComponent(Name = "ComponentWithFlush")]
Components\InheritingViewComponent.cs (1)
8[ViewComponent(Name = "InheritingViewComponent")]
TagHelpersWebSite (1)
TagHelpers\TagCloudViewComponentTagHelper.cs (1)
15[ViewComponent(Name = "Tags")]
11 references to ViewComponent
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
ViewComponents\DefaultViewComponentHelper.cs (2)
76nameof(ViewComponentAttribute), 107nameof(ViewComponentAttribute),
ViewComponents\ViewComponentConventions.cs (7)
27var attribute = componentType.GetCustomAttribute<ViewComponentAttribute>(); 45/// Get the component's full name from a type from the <see cref="ViewComponentAttribute.Name"/> first. 54var attribute = componentType.GetCustomAttribute<ViewComponentAttribute>(); 87/// defines <see cref="ViewComponentAttribute"/>, but not the <see cref="NonViewComponentAttribute"/> 107typeInfo.IsDefined(typeof(ViewComponentAttribute));
ViewComponents\ViewComponentDescriptor.cs (2)
66/// If <see cref="ViewComponentAttribute.Name"/> is used to set a name, then this will be used as 101/// If <see cref="ViewComponentAttribute.Name"/> is used to set a name, then the last segment of the