|
MeasurementStateMappingExtensionsMapToStatus Method
|
Maps MeasurementStateFlags to eDNA status (short value).
Namespace: eDNAAdaptersAssembly: eDNAAdapters (in eDNAAdapters.dll) Version: 2.4.207-beta
Syntax public static short MapToStatus(
this MeasurementStateFlags stateFlags,
DataType type = DataType.Analog,
bool digitalSet = false
)
[<ExtensionAttribute>]
static member MapToStatus :
stateFlags : MeasurementStateFlags *
?type : DataType *
?digitalSet : bool
(* Defaults:
let _type = defaultArg type DataType.Analog
let _digitalSet = defaultArg digitalSet false
*)
-> int16
eDNAAdapters.MeasurementStateMappingExtensions.MapToStatus = function(stateFlags, type, digitalSet);
View SourceParameters
- stateFlags MeasurementStateFlags
- Flags to map.
- type DataType (Optional)
- Data type of measurement.
- digitalSet Boolean (Optional)
- Flag that determines if digital value is set.
Return Value
Int16eDNA status mapped from
MeasurementStateFlags.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
MeasurementStateFlags. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also