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