PropertyExtensionsGetPropertyValueStartingFromApplicationSettingsT Method |
Gets the property value either from the application settings or from the builtin settings.
Namespace: AltaxoAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static T GetPropertyValueStartingFromApplicationSettings<T>(
PropertyKey<T> p,
Func<T>? resultCreationIfNotFound
)
Parameters
- p PropertyKeyT
- The property key.
- resultCreationIfNotFound FuncT
- If the property is not found, a new property value can be created by this procedure. If this value is null, the default
value for this type of property value is returned.
Type Parameters
- T
- Type of the property value to be retrieved.
Return Value
TIf the property is found anywhere in the hierarchy of property bags, the property value of the topmost bag that contains the property is returned.
Otherwise, if
resultCreationIfNotFound is not null, the result of this procedure is returned. Else the default value of the type of property value is returned.
See Also