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

AF SDK Reference

AFEventFrames.Add Method (AFEventFrame)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEventFrames.Add Method (AFEventFrame)
The Add method adds an existing AFEventFrame to the collection.

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

Syntax

public void Add(
	AFEventFrame item
)
Public Sub Add ( 
	item As AFEventFrame
)

Dim instance As AFEventFrames
Dim item As AFEventFrame

instance.Add(item)
public:
void Add(
	AFEventFrame^ item
)
member Add : 
        item : AFEventFrame -> unit 

Parameters

item
Type: OSIsoft.AF.EventFrameAFEventFrame
An existing object to be added to the collection.

Remarks

An existing AFEventFrame is added to this collection using the default AFReferenceType. For the default view, the default AFReferenceType is the standard Parent-Child reference type. This allows the event frame to be in more than one hierarchical relationship.

Important note Important

There can only be a single hierarchical relationship between two event frames. This means that you cannot insert an existing event frame into an event frames collection that already contains that event frame.

There is a restriction that allows an event frame to have only two relationships to another event frame and their AFReferenceStrength cannot be Composition. This means that an event frame can have a maximum of two parents.

Version Information

AFSDK


See Also

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