AFContact.FindRelatedContacts Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves the contacts that are related to the specified AFContact.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFNamedCollectionList<AFContact> FindRelatedContacts( PISystem system, AFContact contact )
Public Shared Function FindRelatedContacts ( system As PISystem, contact As AFContact ) As AFNamedCollectionList(Of AFContact) Dim system As PISystem Dim contact As AFContact Dim returnValue As AFNamedCollectionList(Of AFContact) returnValue = AFContact.FindRelatedContacts(system, contact)
public: static AFNamedCollectionList<AFContact^>^ FindRelatedContacts( PISystem^ system, AFContact^ contact )
static member FindRelatedContacts : system : PISystem * contact : AFContact -> AFNamedCollectionList<AFContact>
Parameters
- system
- Type: OSIsoft.AFPISystem
The PISystem to search for the requested objects. - contact
- Type: OSIsoft.AFAFContact
The AFContact that is related to the requested objects.
Return Value
Type: AFNamedCollectionListAFContactReturns the collection of AFContact objects which are related to the specified contact.
Remarks
The collection of contacts that are related to the specified AFContact.
For User type contacts, this will return an empty collection.
For Group type contacts, this will return the contacts which
are included in the Microsoft Active Directory group.