99 references to ConfigurationPropertyOptions
System.Configuration (1)
System.Configuration.cs (1)
29[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Configuration.ConfigurationPropertyOptions))]
System.Configuration.ConfigurationManager (92)
System\Configuration\AppSettingsSection.cs (2)
50options: ConfigurationPropertyOptions.IsDefaultCollection); 56options: ConfigurationPropertyOptions.None);
System\Configuration\ClientSettingsSection.cs (1)
11private static readonly ConfigurationProperty s_propSettings = new ConfigurationProperty(null, typeof(SettingElementCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
System\Configuration\ConfigurationProperty.cs (14)
18private ConfigurationPropertyOptions _options; 24ConstructorInit(name, type, ConfigurationPropertyOptions.None, null, null, null); 39: this(name, type, defaultValue, ConfigurationPropertyOptions.None) 42public ConfigurationProperty(string name, Type type, object defaultValue, ConfigurationPropertyOptions options) 51ConfigurationPropertyOptions options) 60ConfigurationPropertyOptions options, 186public bool IsRequired => (_options & ConfigurationPropertyOptions.IsRequired) != 0; 188public bool IsKey => (_options & ConfigurationPropertyOptions.IsKey) != 0; 190public bool IsDefaultCollection => (_options & ConfigurationPropertyOptions.IsDefaultCollection) != 0; 193=> (_options & ConfigurationPropertyOptions.IsTypeStringTransformationRequired) != 0; 196=> (_options & ConfigurationPropertyOptions.IsAssemblyStringTransformationRequired) != 0; 198public bool IsVersionCheckRequired => (_options & ConfigurationPropertyOptions.IsVersionCheckRequired) != 0; 220ConfigurationPropertyOptions options, 234if (((options & ConfigurationPropertyOptions.IsDefaultCollection) != 0) && string.IsNullOrEmpty(name))
System\Configuration\ConfigurationPropertyAttribute.cs (11)
20public ConfigurationPropertyOptions Options { get; set; } = ConfigurationPropertyOptions.None; 24get { return (Options & ConfigurationPropertyOptions.IsDefaultCollection) != 0; } 27if (value) Options |= ConfigurationPropertyOptions.IsDefaultCollection; 29Options &= ~ConfigurationPropertyOptions.IsDefaultCollection; 35get { return (Options & ConfigurationPropertyOptions.IsRequired) != 0; } 38if (value) Options |= ConfigurationPropertyOptions.IsRequired; 39else Options &= ~ConfigurationPropertyOptions.IsRequired; 45get { return (Options & ConfigurationPropertyOptions.IsKey) != 0; } 48if (value) Options |= ConfigurationPropertyOptions.IsKey; 49else Options &= ~ConfigurationPropertyOptions.IsKey;
System\Configuration\ConnectionStringSettings.cs (7)
11ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); 14new ConfigurationProperty("connectionString", typeof(string), "", ConfigurationPropertyOptions.IsRequired); 17new ConfigurationProperty("providerName", typeof(string), string.Empty, ConfigurationPropertyOptions.None); 43Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey, DefaultValue = "")] 50[ConfigurationProperty("connectionString", Options = ConfigurationPropertyOptions.IsRequired, DefaultValue = "")]
System\Configuration\ConnectionStringsSection.cs (2)
10ConfigurationPropertyOptions.IsDefaultCollection); 16[ConfigurationProperty("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
System\Configuration\DateTimeConfigurationElement.cs (1)
9new ConfigurationProperty("value", typeof(DateTime), DateTime.MinValue, ConfigurationPropertyOptions.IsKey);
System\Configuration\IdnElement.cs (1)
17EnabledDefaultValue, new UriIdnScopeTypeConverter(), null, ConfigurationPropertyOptions.None);
System\Configuration\IriParsingElement.cs (1)
14ConfigurationPropertyOptions.None);
System\Configuration\KeyValueConfigurationElement.cs (4)
10ConfigurationPropertyOptions.IsKey | ConfigurationPropertyOptions.IsRequired); 13new ConfigurationProperty("value", typeof(string), string.Empty, ConfigurationPropertyOptions.None); 33[ConfigurationProperty("key", Options = ConfigurationPropertyOptions.IsKey, DefaultValue = "")]
System\Configuration\NameValueConfigurationElement.cs (2)
9new ConfigurationProperty("name", typeof(string), string.Empty, ConfigurationPropertyOptions.IsKey); 12new ConfigurationProperty("value", typeof(string), string.Empty, ConfigurationPropertyOptions.None);
System\Configuration\ProtectedConfigurationSection.cs (2)
18ConfigurationPropertyOptions.None); 26options: ConfigurationPropertyOptions.None);
System\Configuration\ProtectedProviderSettings.cs (2)
13options: ConfigurationPropertyOptions.IsDefaultCollection); 25[ConfigurationProperty("", IsDefaultCollection = true, Options = ConfigurationPropertyOptions.IsDefaultCollection)]
System\Configuration\ProviderSettings.cs (4)
19ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); 22ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsTypeStringTransformationRequired);
System\Configuration\SchemeSettingElement.cs (4)
9ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); 12ConfigurationPropertyOptions.IsRequired); 23DefaultValue = ConfigurationPropertyOptions.None, IsRequired = true)]
System\Configuration\SettingElement.cs (4)
14ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); 19ConfigurationPropertyOptions.IsRequired); 24ConfigurationPropertyOptions.IsRequired);
System\Configuration\UriSection.cs (3)
11typeof(IdnElement), null, ConfigurationPropertyOptions.None); 14CommonConfigurationStrings.IriParsing, typeof(IriParsingElement), null, ConfigurationPropertyOptions.None); 18typeof(SchemeSettingElementCollection), null, ConfigurationPropertyOptions.None);
System\Diagnostics\ListenerElementsCollection.cs (7)
81private static readonly ConfigurationProperty s_propFilter = new("filter", typeof(FilterElement), null, ConfigurationPropertyOptions.None); 82private static readonly ConfigurationProperty s_propName = new("name", typeof(string), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); 83private static readonly ConfigurationProperty s_propOutputOpts = new("traceOutputOptions", typeof(TraceOptions), TraceOptions.None, ConfigurationPropertyOptions.None); 96ConfigurationPropertyOptions flags = ConfigurationPropertyOptions.None; 98flags |= ConfigurationPropertyOptions.IsRequired;
System\Diagnostics\SourceElementsCollection.cs (5)
36private static readonly ConfigurationProperty _propName = new("name", typeof(string), "", ConfigurationPropertyOptions.IsRequired); 37private static readonly ConfigurationProperty _propSwitchName = new("switchName", typeof(string), null, ConfigurationPropertyOptions.None); 38private static readonly ConfigurationProperty _propSwitchValue = new("switchValue", typeof(string), null, ConfigurationPropertyOptions.None); 39private static readonly ConfigurationProperty _propSwitchType = new("switchType", typeof(string), null, ConfigurationPropertyOptions.None); 40private static readonly ConfigurationProperty _propListeners = new("listeners", typeof(ListenerElementsCollection), new ListenerElementsCollection(), ConfigurationPropertyOptions.None);
System\Diagnostics\SwitchElementsCollection.cs (3)
23private static readonly ConfigurationProperty _propName = new("name", typeof(string), "", ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); 24private static readonly ConfigurationProperty _propValue = new("value", typeof(string), null, ConfigurationPropertyOptions.IsRequired);
System\Diagnostics\SystemDiagnosticsSection.cs (4)
11private static readonly ConfigurationProperty s_propSources = new("sources", typeof(SourceElementsCollection), new SourceElementsCollection(), ConfigurationPropertyOptions.None); 12private static readonly ConfigurationProperty s_propSharedListeners = new("sharedListeners", typeof(SharedListenerElementsCollection), new SharedListenerElementsCollection(), ConfigurationPropertyOptions.None); 13private static readonly ConfigurationProperty s_propSwitches = new("switches", typeof(SwitchElementsCollection), new SwitchElementsCollection(), ConfigurationPropertyOptions.None); 14private static readonly ConfigurationProperty s_propTrace = new("trace", typeof(TraceSection), new TraceSection(), ConfigurationPropertyOptions.None);
System\Diagnostics\TraceSection.cs (4)
11private static readonly ConfigurationProperty s_propListeners = new("listeners", typeof(ListenerElementsCollection), null, ConfigurationPropertyOptions.None); 12private static readonly ConfigurationProperty s_propAutoFlush = new("autoflush", typeof(bool), false, ConfigurationPropertyOptions.None); 13private static readonly ConfigurationProperty s_propIndentSize = new("indentsize", typeof(int), 4, ConfigurationPropertyOptions.None); 14private static readonly ConfigurationProperty s_propUseGlobalLock = new("useGlobalLock", typeof(bool), true, ConfigurationPropertyOptions.None);
System\Diagnostics\TypedElement.cs (3)
9protected static readonly ConfigurationProperty s_propTypeName = new("type", typeof(string), string.Empty, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsTypeStringTransformationRequired); 10protected static readonly ConfigurationProperty s_propInitData = new("initializeData", typeof(string), string.Empty, ConfigurationPropertyOptions.None);
System\Drawing\Configuration\SystemDrawingSection.cs (1)
26new ConfigurationProperty(BitmapSuffixSectionName, typeof(string), null, ConfigurationPropertyOptions.None);
System.Runtime.Caching (6)
System\Runtime\Caching\Configuration\MemoryCacheElement.cs (5)
22ConfigurationPropertyOptions.IsRequired | 23ConfigurationPropertyOptions.IsKey); 30ConfigurationPropertyOptions.None); 37ConfigurationPropertyOptions.None); 44ConfigurationPropertyOptions.None);
System\Runtime\Caching\Configuration\MemoryCacheSection.cs (1)
32ConfigurationPropertyOptions.None);