public class Settings : DynamicObject
Public Class Settings
Inherits DynamicObject
public ref class Settings : public DynamicObject
Gemstone.Configuration.Settings = function();
Type.createClass(
'Gemstone.Configuration.Settings',
DynamicObject);
Settings settings = new()
{
INIFile = ConfigurationOperation.ReadWrite,
SQLite = ConfigurationOperation.Disabled
};
// Bind settings to configuration sources
settings.Bind(new ConfigurationBuilder()
.ConfigureGemstoneDefaults(settings)
.AddCommandLine(args, settings.SwitchMappings));
Settings | Creates a new Settings instance. |
Configuration | Gets the source IConfiguration for settings. |
Count | Gets the sections count for the settings. |
Default | Gets the default instance of Settings as a dynamic object. |
EnvironmentalVariables | Gets or sets configuration operation mode for environmental variables. |
INIFile | Gets or sets configuration operation mode for INI file settings. |
Instance | Gets the default instance of Settings. |
IsDirty | Gets flag that determines if any settings have been changed. |
Item | Gets the SettingsSection for the specified key. |
SectionNames | Gets the names for the settings sections. |
SplitDescriptionLines | Gets or sets flag that determines if description lines, e.g., those encoded into an INI file, should be split into multiple lines. |
SQLite | Gets or sets configuration operation mode for SQLite settings. |
SwitchMappings | Gets the command line switch mappings for Settings. |
Bind | Attempts to bind the Settings instance to configuration values by matching property names against configuration keys recursively. |
ConfigureAppSettings | Configures the IAppSettingsBuilder for Settings. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetDynamicMemberNames | Returns the enumeration of all dynamic member names. (Overrides DynamicObjectGetDynamicMemberNames) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetMetaObject | Provides a DynamicMetaObject that dispatches to the dynamic virtual methods. The object can be encapsulated inside another DynamicMetaObject to provide custom behavior for individual actions. This method supports the Dynamic Language Runtime infrastructure for language implementers and it is not intended to be used directly from your code. (Inherited from DynamicObject) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
Save(Boolean, Boolean) | Saves any changed settings. |
Save(Settings, Boolean) | Saves any changed settings. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
TryBinaryOperation | Provides implementation for binary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication. (Inherited from DynamicObject) |
TryConvert | Provides implementation for type conversion operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another. (Inherited from DynamicObject) |
TryCreateInstance | Provides the implementation for operations that initialize a new instance of a dynamic object. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject) |
TryDeleteIndex | Provides the implementation for operations that delete an object by index. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject) |
TryDeleteMember | Provides the implementation for operations that delete an object member. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject) |
TryGetIndex | Provides the implementation for operations that get a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for indexing operations. (Overrides DynamicObjectTryGetIndex(GetIndexBinder, Object, Object)) |
TryGetMember | Provides the implementation for operations that get member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property. (Overrides DynamicObjectTryGetMember(GetMemberBinder, Object)) |
TryInvoke | Provides the implementation for operations that invoke an object. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate. (Inherited from DynamicObject) |
TryInvokeMember | Provides the implementation for operations that invoke a member. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method. (Inherited from DynamicObject) |
TrySetIndex | Provides the implementation for operations that set a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that access objects by a specified index. (Overrides DynamicObjectTrySetIndex(SetIndexBinder, Object, Object)) |
TrySetMember | Provides the implementation for operations that set member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property. (Overrides DynamicObjectTrySetMember(SetMemberBinder, Object)) |
TryUnaryOperation | Provides implementation for unary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as negation, increment, or decrement. (Inherited from DynamicObject) |
UpdateInstance | Updates the default instance of Settings. |
SystemSettingsCategory | Defines the configuration section name for system settings. |
GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |