PropertyHierarchyTryGetValueT(String, Boolean, T, IPropertyBag, PropertyBagInformation) Method |
Tries to get a specific property value. The bags are search for the property, starting from the topmost bag and iterating to the bag at the bottom.
Namespace: Altaxo.Main.PropertiesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public bool TryGetValue<T>(
string propName,
bool useTopmostBagOnly,
out T value,
out IPropertyBag bag,
out PropertyBagInformation bagInfo
)
Parameters
- propName String
- The property key as string value.
- useTopmostBagOnly Boolean
- If true, the search is done only on the topmost bag. All other bags in the hierarchy are ignored.
- value T
- On successfull return, this contains the retrieved property value.
- bag IPropertyBag
- On successfull return, this contains the property bag from which the property value was retrieved.
- bagInfo PropertyBagInformation
- On successfull return, this contains the information about the property bag from which the property value was retrieved.
Type Parameters
- T
- Type of the property value to search for.
Return Value
BooleanTrue if the property value could be successfully retrieved;
false otherwise.
See Also