File: System\Configuration\SettingsGroupNameAttribute.cs
Web Access
Project: src\src\libraries\System.Configuration.ConfigurationManager\src\System.Configuration.ConfigurationManager.csproj (System.Configuration.ConfigurationManager)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Configuration
{
    /// <summary>
    /// Name of a particular settings group.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class SettingsGroupNameAttribute : Attribute
    {
        private readonly string _groupName;
 
        /// <summary>
        /// Constructor takes the group name.
        /// </summary>
        public SettingsGroupNameAttribute(string groupName)
        {
            _groupName = groupName;
        }
 
        /// <summary>
        /// Name of the settings group.
        /// </summary>
        public string GroupName
        {
            get
            {
                return _groupName;
            }
        }
    }
}