UserUnitProvider Class |
If a quantity ID is not provided when adding a user units, it will match on the eumItem value only.
Namespace: DHI.Mike1D.Generic
The UserUnitProvider type exposes the following members.
Name | Description | |
---|---|---|
UserUnitProvider | Initializes a new instance of the UserUnitProvider class |
Name | Description | |
---|---|---|
Add(UserUnitInfo) |
Add user unit to unit provider
| |
Add(eumItem, eumUnit) |
Add user unit to unit provider, based on eumItem type
| |
Add(UserUnitProviderUnitSearchType, UserUnitInfo) |
Add user unit to unit provider, with the given search type
| |
Add(String, eumItem, eumUnit) |
Add user unit to unit provider, based on Id of quantity
| |
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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUserUnit(eumItem) |
Return user unit for EUM item type
| |
GetUserUnit(String, eumItem) |
Return user unit
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update(UserUnitInfo) |
Update existing unit.
| |
Update(UserUnitInfo, UserUnitProviderUnitSearchType) |
Name | Description | |
---|---|---|
_itemMap | ||
_quantityMap | ||
_unitSearchers |
Name | Description | |
---|---|---|
GetUnitConversionFactor(eumItem, eumUnit) | Overloaded.
Get a unit conversion factor for EUM quantity
(Defined by Util.) | |
GetUnitConversionFactor(eumItem, eumUnit, eumUnit) | Overloaded.
Get a unit conversion factor for EUM quantity
(Defined by Util.) | |
GetUserUnitOrDefault |
Get a unit conversion factor for EUM quantity
(Defined by Util.) | |
UpdateQuantityUserUnit |
Update quantity with user unit, if user unit is available
(Defined by Util.) | |
UserUnitToString |
Return a unit as a string
(Defined by Util.) | |
ValueInUserUnit(eumItem, Double) | Overloaded.
Convert a value to user unit and return as a string
(Defined by Util.) | |
ValueInUserUnit(eumQuantity, Double) | Overloaded.
Convert a value to user unit and return as a string
(Defined by Util.) | |
ValueInUserUnitToString |
Convert a value to user unit and return as a string
(Defined by Util.) | |
ValueInUserUnitToStringWithUnit |
Convert a value to user unit and return as a string
(Defined by Util.) |