AFRpcMetric.SubtractList Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The subtraction method for a list of AFRpcMetric values returns the
difference between the two lists of values.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static IList<AFRpcMetric> SubtractList( IList<AFRpcMetric> lhs, IList<AFRpcMetric> rhs )
Public Shared Function SubtractList ( lhs As IList(Of AFRpcMetric), rhs As IList(Of AFRpcMetric) ) As IList(Of AFRpcMetric) Dim lhs As IList(Of AFRpcMetric) Dim rhs As IList(Of AFRpcMetric) Dim returnValue As IList(Of AFRpcMetric) returnValue = AFRpcMetric.SubtractList(lhs, rhs)
public: static IList<AFRpcMetric>^ SubtractList( IList<AFRpcMetric>^ lhs, IList<AFRpcMetric>^ rhs )
static member SubtractList : lhs : IList<AFRpcMetric> * rhs : IList<AFRpcMetric> -> IList<AFRpcMetric>
Parameters
- lhs
- Type: System.Collections.GenericIListAFRpcMetric
Left hand operator. - rhs
- Type: System.Collections.GenericIListAFRpcMetric
Right hand operator.
Return Value
Type: IListAFRpcMetricReturns a new list of AFRpcMetric values representing the difference between the two lists of values.
Remarks
An AFRpcMetric that is in the rhs list but not in the
lhs list will be ignored. If a metric in the lhs list
is equal to the corresponding metric in the lhs list, then it is not
included in the returned list.