Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFRpcMetric.SubtractList Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFRpcMetric.SubtractList Method
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: IListAFRpcMetric
Returns 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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in