NetworkDataTAddValue Method (ILocation, T, Boolean) |
Add a value on the given location.
Namespace:
DHI.Mike1D.Generic
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public bool AddValue(
ILocation location,
T value,
bool directionPositive
)
Public Function AddValue (
location As ILocation,
value As T,
directionPositive As Boolean
) As Boolean
public:
bool AddValue(
ILocation^ location,
T value,
bool directionPositive
)
Parameters
- location
- Type: DHI.Mike1D.GenericILocation
Location of the value. - value
- Type: T
Value at location - directionPositive
- Type: SystemBoolean
When two values are defined at the same point, this
specifies if the value is valid from the positive side
or from the negative side. When ordered, values from
the negative side goes before values from the positive side.
Return Value
Type:
BooleanTrue on success.
Remarks
Adding like this is generally an O(n) operation. If adding
in chainage increasing order, it is fast.
See Also