ServiceModelConfigurationSectionGroup.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModelInstall / System / ServiceModel / Install / Configuration / ServiceModelConfigurationSectionGroup.cs / 1 / ServiceModelConfigurationSectionGroup.cs

                            //------------------------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------

namespace System.ServiceModel.Install.Configuration 
{
    using System; 
    using System.Xml; 
    using System.Xml.Serialization;
 
    public class ServiceModelConfigurationSectionGroup
    {
        string name;
        string type; 
        ServiceModelConfigurationSectionGroupCollection sectionGroups;
        ServiceModelConfigurationSectionCollection sections; 
 
        [XmlAttribute("name")]
        public string Name 
        {
            get { return name; }
            set { name = value; }
        } 

        [XmlElement(ElementName = "sectionGroup", IsNullable = true)] 
        public ServiceModelConfigurationSectionGroupCollection SectionGroups 
        {
            get { return sectionGroups; } 
        }

        [XmlElement(ElementName = "section", IsNullable = true)]
        public ServiceModelConfigurationSectionCollection Sections 
        {
            get { return sections; } 
        } 

        [XmlAttribute("type")] 
        public string Type
        {
            get { return type; }
            set { type = value; } 
        }
 
        public ServiceModelConfigurationSectionGroup() 
            : this(null, null)
        { 
        }

        public ServiceModelConfigurationSectionGroup(string name, string type)
        { 
            this.name = name;
            this.type = type; 
            this.sectionGroups = new ServiceModelConfigurationSectionGroupCollection(); 
            this.sections = new ServiceModelConfigurationSectionCollection();
        } 

        public ServiceModelConfigurationSectionGroup(string name, string type, ServiceModelConfigurationSectionGroup[] sectionGroups)
            : this(name, type)
        { 
            foreach (ServiceModelConfigurationSectionGroup sectionGroup in sectionGroups)
            { 
                this.sectionGroups.Add(sectionGroup); 
            }
        } 

        public ServiceModelConfigurationSectionGroup(string name, string type, ServiceModelConfigurationSection[] sections)
            : this(name, type)
        { 
            foreach (ServiceModelConfigurationSection section in sections)
            { 
                this.sections.Add(section); 
            }
        } 

        public ServiceModelConfigurationSectionGroup(string name, string type, ServiceModelConfigurationSectionGroup[] sectionGroups, ServiceModelConfigurationSection[] sections)
            : this(name, type)
        { 
            foreach (ServiceModelConfigurationSectionGroup sectionGroup in sectionGroups)
            { 
                this.sectionGroups.Add(sectionGroup); 
            }
 
            foreach (ServiceModelConfigurationSection section in sections)
            {
                this.sections.Add(section);
            } 
        }
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK