AFEventFrames.Add Method (AFEventFrame)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.
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. |