Click or drag to resize

ControlDataGetOrCreateSensorT Method

Get or create sensor. This is relevant for sensors that is not connected to anything by default, but needs user interaction to get connected.

Namespace:  DHI.Mike1D.ControlModule
Assembly:  DHI.Mike1D.ControlModule (in DHI.Mike1D.ControlModule.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public ISensor<T> GetOrCreateSensor<T>(
	string sensorId,
	SensorLocationType locationType = SensorLocationType.None,
	IQuantity quantity = null
)

Parameters

sensorId
Type: SystemString

[Missing <param name="sensorId"/> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor``1(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

locationType (Optional)
Type: DHI.Mike1D.ControlModuleSensorLocationType

[Missing <param name="locationType"/> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor``1(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

quantity (Optional)
Type: DHI.Mike1D.GenericIQuantity

[Missing <param name="quantity"/> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor``1(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor``1(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

Return Value

Type: ISensorT

[Missing <returns> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor``1(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

See Also