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

AF SDK Reference

AFEventFrame.PrimaryReferencedElement Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEventFrame.PrimaryReferencedElement Property
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: AFElement
Returns 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.

Version Information

AFSDK


See Also

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