AFCollectiveMembers.Add Method (PISystem)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Adds a new collective member to the AFCollective using the specified
PISystem.
Namespace: OSIsoft.AF.Collective
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFCollectiveMember Add( PISystem system )
Public Function Add ( system As PISystem ) As AFCollectiveMember Dim instance As AFCollectiveMembers Dim system As PISystem Dim returnValue As AFCollectiveMember returnValue = instance.Add(system)
public: AFCollectiveMember^ Add( PISystem^ system )
member Add : system : PISystem -> AFCollectiveMember
Parameters
- system
- Type: OSIsoft.AFPISystem
The PISystem used to initialize the new collective member.
Return Value
Type: AFCollectiveMemberReturns the newly created AFCollectiveMember object.
Remarks
This method is used to add a new Secondary collective member to
the AFCollective. The new collective member will be initialized to use the
existing server represented by the specified PISystem. Once the
PISystem has been added to the collective, it should be removed from the
PISystems collection to avoid confusion when attempting to select connections
to the server in the future.
This change will not go into effect until saved to the server using one of the
AFCollective.ApplyChanges Overload
methods.