SchemeSettingElement
Represents an element in a SchemeSettingElementCollection class.
namespace System.Configuration
{
public sealed class SchemeSettingElement : ConfigurationElement
{
private static readonly ConfigurationProperty s_name = new ConfigurationProperty("name", typeof(string), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
private static readonly ConfigurationProperty s_genericUriParserOptions = new ConfigurationProperty("genericUriParserOptions", typeof(GenericUriParserOptions), GenericUriParserOptions.Default, ConfigurationPropertyOptions.IsRequired);
private static readonly ConfigurationPropertyCollection s_properties = new ConfigurationPropertyCollection {
s_name,
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;
}
}