14 writes to Name
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
171[ViewComponent(Name = "AttributesAreGreat")]
ViewComponents\DefaultViewComponentSelectorTest.cs (5)
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 (2)
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")]
9 references to Name
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
ViewComponents\ViewComponentConventions.cs (7)
28if (attribute != null && !string.IsNullOrEmpty(attribute.Name)) 30var separatorIndex = attribute.Name.LastIndexOf('.'); 33return attribute.Name.Substring(separatorIndex + 1); 37return attribute.Name; 45/// Get the component's full name from a type from the <see cref="ViewComponentAttribute.Name"/> first. 55if (!string.IsNullOrEmpty(attribute?.Name)) 57return attribute.Name;
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