• Home
  • Blog
  • Docs
  • GitHub
Show / Hide Table of Contents

Interface IConfigurationSection

Represents a serializable section in a configuration

Inherited Members
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Snowflake.Configuration.IConfigurationOptionDescriptor, Snowflake.Configuration.IConfigurationValue>>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()
Namespace: Snowflake.Configuration
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IConfigurationSection : IEnumerable<KeyValuePair<IConfigurationOptionDescriptor, IConfigurationValue>>, IEnumerable

Properties

Descriptor

Gets the descriptor that describes the configuration section.

Declaration
IConfigurationSectionDescriptor Descriptor { get; }
Property Value
Type Description
IConfigurationSectionDescriptor

Item[String]

Gets or sets the option value with the specified property name in the configuration section in an untyped and unsafe manner.

Declaration
object this[string key] { get; set; }
Parameters
Type Name Description
System.String key

The property name of the configuration option

Property Value
Type Description
System.Object

The untyped value of the configuration value

Remarks

Only use this if you know what you are doing. The safe manner to access configuration values is through the Configuration property.

ValueCollection

Gets the values backing this configuration section, as well as those in the parent configuration collection.

It is well recommended to use Values instead, however direct access to the value collection may be useful in some cases.

Declaration
IConfigurationValueCollection ValueCollection { get; }
Property Value
Type Description
IConfigurationValueCollection

Values

Gets the read only mapping of property names to configuration values Enumerating over the values key is not guaranteed to be in the same order as the order the properties were defined.

The implementation is responsible for ensuring this mapping synced with the values stored in the object and ensuring this mapping is immutable.

Declaration
IReadOnlyDictionary<string, IConfigurationValue> Values { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyDictionary<System.String, IConfigurationValue>
Built with ❤️ by @chyyran. Text content licensed under CC-BY-SA 4.0.