AFEventFrame.PrimaryReferencedElement Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The primary referenced AFElement associated with the event frame.
Namespace: OSIsoft.AF.EventFrame
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFElement PrimaryReferencedElement { get; set; }
Public Property PrimaryReferencedElement As AFElement Get Set Dim instance As AFEventFrame Dim value As AFElement value = instance.PrimaryReferencedElement instance.PrimaryReferencedElement = value
public: property AFElement^ PrimaryReferencedElement { AFElement^ get (); void set (AFElement^ value); }
member PrimaryReferencedElement : AFElement with get, set
Property Value
Type: AFElementReturns the primary referenced AFElement associated with the event frame.
Remarks
This property is automatically set to the first AFElement added to the
ReferencedElements collection, but it can be changed to any AFElement
by setting this property. If this property is set to an AFElement that is not
in the ReferencedElements collection, then it will be automatically added.