SchemeSettingElement
Represents an element in a SchemeSettingElementCollection class.
namespace System.Configuration
{
public sealed class SchemeSettingElement : ConfigurationElement
{
private static readonly ConfigurationPropertyCollection s_properties;
private static readonly ConfigurationProperty s_name;
private static readonly ConfigurationProperty s_genericUriParserOptions;
[ConfigurationProperty("name", DefaultValue = null, IsRequired = true, IsKey = true)]
public string Name {
get {
return (string)base[s_name];
}
}
[ConfigurationProperty("genericUriParserOptions", DefaultValue = ConfigurationPropertyOptions.None, IsRequired = true)]
public GenericUriParserOptions GenericUriParserOptions {
get {
return (GenericUriParserOptions)base[s_genericUriParserOptions];
}
}
protected internal override ConfigurationPropertyCollection Properties => s_properties;
static SchemeSettingElement()
{
s_name = new ConfigurationProperty("name", typeof(string), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
s_genericUriParserOptions = new ConfigurationProperty("genericUriParserOptions", typeof(GenericUriParserOptions), GenericUriParserOptions.Default, ConfigurationPropertyOptions.IsRequired);
s_properties = new ConfigurationPropertyCollection();
s_properties.Add(s_name);
s_properties.Add(s_genericUriParserOptions);
}
}
}