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, AFReferenceType)

AFEventFrames.Add Method (AFEventFrame, AFReferenceType)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEventFrames.Add Method (AFEventFrame, AFReferenceType)
This method adds an existing AFEventFrame to the collection using the specified reference type.

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.

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