Method GetParameters
GetParameters(object)
Gets the values of multiple standalone parameters.
object GetParameters(object ids)
Parameters
ids
objectThe IDs of the parameters to retrieve.
Returns
- object
The values of the retrieved parameters.
Examples
object[] parameters = (object[])protocol.GetParameters(new uint[] { 631, 831, 31 });
In order to avoid magic numbers, you can make use of the Parameter class.
object[] parameters = (object[])protocol.GetParameters(new uint[] { Parameter.myparameter, Parameter.myotherparameter, Parameter.anotherparameter });
Remarks
-
This is a wrapper method for the NotifyProtocol type 73 NT_GET_PARAMETER call.
-
In case a provided parameter ID in the parameterIDs array does not exist in the protocol, the returned object array will contain a null reference.
-
When calling this method on a numeric parameter (i.e. a parameter having RawType set to either numeric text, signed number or unsigned number) that is not initialized, 0 will be returned.To determine whether a standalone parameter is uninitialized, the IsEmpty(int) method should be used.