ISettingsReader Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This exposes the "effective value" of settings: the value from the highest priority scope where each setting is customized.
public interface ISettingsReader
type ISettingsReader = interface
Public Interface ISettingsReader
- Derived
Methods
GetArray<T>(String, SettingReadOptions) |
Gets an array setting's effective value, or the default value if it isn't customized. |
GetArrayOrThrow<T>(String) |
Gets an array setting. If there is no persisted value, the persisted value is invalid,
or the persisted value can't be converted to an array of |
GetValue(String, Type, SettingReadOptions) |
Gets a non-array setting's effective value, or the default value if it isn't customized. |
GetValue<T>(String, SettingReadOptions) |
Gets a non-array setting's effective value, or the default value if it isn't customized. |
GetValueOrThrow(String, Type) |
Gets a non-array setting. If there is no persisted value, the persisted value is invalid,
or the persisted value can't be converted to |
GetValueOrThrow<T>(String) |
Gets a non-array setting. If there is no persisted value, the persisted value is invalid,
or the persisted value can't be converted to |
SubscribeToChanges(Action<SettingsUpdate>, String[]) |
Registers a callback to be invoked when settings' effective values change. Note that a setting can change without affecting its effective value if the setting is overridden in a higher-priority scope -- e.g. if a setting change is applied to "user" scope (lower priority) but the same setting is also customized at "workspace" scope (higher priority), the change will not affect the effective value. |