// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
namespace WixToolset.Mba.Host
{
using System;
using System.Configuration;
///
/// Handler for the Host configuration section.
///
public sealed class HostSection : ConfigurationSection
{
private static readonly ConfigurationProperty assemblyNameProperty = new ConfigurationProperty("assemblyName", typeof(string), null, ConfigurationPropertyOptions.IsRequired);
private static readonly ConfigurationProperty supportedFrameworksProperty = new ConfigurationProperty("", typeof(SupportedFrameworkElementCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
///
/// Creates a new instance of the class.
///
public HostSection()
{
}
///
/// Gets the name of the assembly that contians the child class.
///
///
/// The assembly specified by this name must contain the to identify
/// the type of the child class.
///
[ConfigurationProperty("assemblyName", IsRequired = true)]
public string AssemblyName
{
get { return (string)base[assemblyNameProperty]; }
set { base[assemblyNameProperty] = value; }
}
///
/// Gets the of supported frameworks for the host configuration.
///
[ConfigurationProperty("", IsDefaultCollection = true)]
[ConfigurationCollection(typeof(SupportedFrameworkElement))]
public SupportedFrameworkElementCollection SupportedFrameworks
{
get { return (SupportedFrameworkElementCollection)base[supportedFrameworksProperty]; }
}
}
}