// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Mvc { /// /// Indicates the class and all subclasses are view components. Optionally specifies a view component's name. If /// defining a base class for multiple view components, associate this attribute with that base. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public class ViewComponentAttribute : Attribute { /// /// Gets or sets the name of the view component. Do not supply a name in an attribute associated with a view /// component base class. /// public string Name { get; set; } } }