PageRenderTime 20ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/V4/PrismLibrary/Desktop/Prism/Modularity/ModulesConfigurationSection.Desktop.cs

#
C# | 38 lines | 14 code | 1 blank | 23 comment | 0 complexity | 78d902e6b8c2f540fd3573af1e6bef65 MD5 | raw file
 1//===================================================================================
 2// Microsoft patterns & practices
 3// Composite Application Guidance for Windows Presentation Foundation and Silverlight
 4//===================================================================================
 5// Copyright (c) Microsoft Corporation.  All rights reserved.
 6// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
 7// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
 8// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 9// FITNESS FOR A PARTICULAR PURPOSE.
10//===================================================================================
11// The example companies, organizations, products, domain names,
12// e-mail addresses, logos, people, places, and events depicted
13// herein are fictitious.  No association with any real company,
14// organization, product, domain name, email address, logo, person,
15// places, or events is intended or should be inferred.
16//===================================================================================
17using System.Configuration;
18
19namespace Microsoft.Practices.Prism.Modularity
20{
21    /// <summary>
22    /// A <see cref="ConfigurationSection"/> for module configuration.
23    /// </summary>
24    public class ModulesConfigurationSection : ConfigurationSection
25    {
26        /// <summary>
27        /// Gets or sets the collection of modules configuration.
28        /// </summary>
29        /// <value>A <seealso cref="ModuleConfigurationElementCollection"/> of <seealso cref="ModuleConfigurationElement"/>.</value>
30        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
31        [ConfigurationProperty("", IsDefaultCollection = true, IsKey = false)]
32        public ModuleConfigurationElementCollection Modules
33        {
34            get { return (ModuleConfigurationElementCollection)base[""]; }
35            set { base[""] = value; }
36        }
37    }
38}