AFContact.LoadContacts Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: AFNamedCollectionListAFContactA 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.
| Specifying an ID of Guid.Empty will return the AFContact associated with the current user (see GetCurrentUser(PISystem)). |