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