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

AF SDK Reference

AFContact.FindRelatedContacts Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFContact.FindRelatedContacts Method
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: AFNamedCollectionListAFContact
Returns 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.

Version Information

AFSDK


See Also

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