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

AF SDK Reference

AFContact.LoadContacts Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFContact.LoadContacts Method
Loads the AFContact objects with the specified unique identifiers.

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static AFNamedCollectionList<AFContact> LoadContacts(
	PISystem system,
	Guid[] ids
)
Public Shared Function LoadContacts ( 
	system As PISystem,
	ids As Guid()
) As AFNamedCollectionList(Of AFContact)

Dim system As PISystem
Dim ids As Guid()
Dim returnValue As AFNamedCollectionList(Of AFContact)

returnValue = AFContact.LoadContacts(system, 
	ids)
public:
static AFNamedCollectionList<AFContact^>^ LoadContacts(
	PISystem^ system, 
	array<Guid>^ ids
)
static member LoadContacts : 
        system : PISystem * 
        ids : Guid[] -> AFNamedCollectionList<AFContact> 

Parameters

system
Type: OSIsoft.AFPISystem
The PISystem to search for the desired objects.
ids
Type: SystemGuid
An array of the unique identifiers of the objects to find.

Return Value

Type: AFNamedCollectionListAFContact
A list of the AFContact objects in the PISystem which match the unique identifiers. If the object cannot be found, it will not be returned in the list.

Remarks

Fully loads the AFContact objects from the server into the client with the specified ids.
Note Note
Specifying an ID of Guid.Empty will return the AFContact associated with the current user (see GetCurrentUser(PISystem)).

Version Information

AFSDK


See Also

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