AFCollection(T).Add Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Adds an object to the end of the collection.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void Add( T item )
Public Sub Add ( item As T ) Dim instance As AFCollection Dim item As T instance.Add(item)
public: virtual void Add( T item ) sealed
abstract Add : item : 'T -> unit override Add : item : 'T -> unit
Parameters
- item
- Type: T
The object to be added to the end of the collection. The value cannot be .
Implements
ICollectionTAdd(T)
Remarks
The collection does not accept values and does allow duplicate items.
This method is an O(1) operation.