23 references to IsRequired
System.Configuration.ConfigurationManager (22)
System\Configuration\ConfigurationProperty.cs (1)
186
public bool IsRequired => (_options & ConfigurationPropertyOptions.
IsRequired
) != 0;
System\Configuration\ConfigurationPropertyAttribute.cs (3)
35
get { return (Options & ConfigurationPropertyOptions.
IsRequired
) != 0; }
38
if (value) Options |= ConfigurationPropertyOptions.
IsRequired
;
39
else Options &= ~ConfigurationPropertyOptions.
IsRequired
;
System\Configuration\ConnectionStringSettings.cs (4)
11
ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsKey);
14
new ConfigurationProperty("connectionString", typeof(string), "", ConfigurationPropertyOptions.
IsRequired
);
43
Options = ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsKey, DefaultValue = "")]
50
[ConfigurationProperty("connectionString", Options = ConfigurationPropertyOptions.
IsRequired
, DefaultValue = "")]
System\Configuration\KeyValueConfigurationElement.cs (1)
10
ConfigurationPropertyOptions.IsKey | ConfigurationPropertyOptions.
IsRequired
);
System\Configuration\ProviderSettings.cs (2)
19
ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsKey);
22
ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsTypeStringTransformationRequired);
System\Configuration\SchemeSettingElement.cs (2)
9
ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsKey);
12
ConfigurationPropertyOptions.
IsRequired
);
System\Configuration\SettingElement.cs (3)
14
ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsKey);
19
ConfigurationPropertyOptions.
IsRequired
);
24
ConfigurationPropertyOptions.
IsRequired
);
System\Diagnostics\ListenerElementsCollection.cs (2)
82
private static readonly ConfigurationProperty s_propName = new("name", typeof(string), null, ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsKey);
98
flags |= ConfigurationPropertyOptions.
IsRequired
;
System\Diagnostics\SourceElementsCollection.cs (1)
36
private static readonly ConfigurationProperty _propName = new("name", typeof(string), "", ConfigurationPropertyOptions.
IsRequired
);
System\Diagnostics\SwitchElementsCollection.cs (2)
23
private static readonly ConfigurationProperty _propName = new("name", typeof(string), "", ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsKey);
24
private static readonly ConfigurationProperty _propValue = new("value", typeof(string), null, ConfigurationPropertyOptions.
IsRequired
);
System\Diagnostics\TypedElement.cs (1)
9
protected static readonly ConfigurationProperty s_propTypeName = new("type", typeof(string), string.Empty, ConfigurationPropertyOptions.
IsRequired
| ConfigurationPropertyOptions.IsTypeStringTransformationRequired);
System.Runtime.Caching (1)
System\Runtime\Caching\Configuration\MemoryCacheElement.cs (1)
22
ConfigurationPropertyOptions.
IsRequired
|