AFEventFrames.Add Method (AFEventFrame, AFReferenceType)
- 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, AFReferenceType refType )
Public Sub Add ( item As AFEventFrame, refType As AFReferenceType ) Dim instance As AFEventFrames Dim item As AFEventFrame Dim refType As AFReferenceType instance.Add(item, refType)
public: void Add( AFEventFrame^ item, AFReferenceType^ refType )
member Add : item : AFEventFrame * refType : AFReferenceType -> unit
Parameters
- item
- Type: OSIsoft.AF.EventFrameAFEventFrame
An existing object to be added to the collection. - refType
- Type: OSIsoft.AF.AssetAFReferenceType
The AFReferenceType specifies the hierarchical relationship between the inserted event frame and the event frame which own this collection of event frames. The default reference type is the standard Parent-Child reference type.
Remarks
An existing AFEventFrame is added to this collection using the specified AFReferenceType. 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. |