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

AF SDK Reference

AFCollection(T).Add Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFCollection(T).Add Method
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.

Version Information

AFSDK


See Also

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