AFSecurity.AreEquivalent Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method compares two lists of AFSecurityIdentity items for equivalence.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static bool AreEquivalent( IList<AFSecurityIdentity> lhs, IList<AFSecurityIdentity> rhs )
Public Shared Function AreEquivalent ( lhs As IList(Of AFSecurityIdentity), rhs As IList(Of AFSecurityIdentity) ) As Boolean Dim lhs As IList(Of AFSecurityIdentity) Dim rhs As IList(Of AFSecurityIdentity) Dim returnValue As Boolean returnValue = AFSecurity.AreEquivalent(lhs, rhs)
public: static bool AreEquivalent( IList<AFSecurityIdentity^>^ lhs, IList<AFSecurityIdentity^>^ rhs )
static member AreEquivalent : lhs : IList<AFSecurityIdentity> * rhs : IList<AFSecurityIdentity> -> bool
Parameters
- lhs
- Type: System.Collections.GenericIListAFSecurityIdentity
The left-hand-side list to compare against. - rhs
- Type: System.Collections.GenericIListAFSecurityIdentity
The right-hand-side list to compare against.
Return Value
Type: BooleanReturns if the two lists are equivalent, otherwise .
Remarks
Two lists of AFSecurityIdentity items are considered equivalent if they have
the same identities in each list regardless of order.