AFDatabase.ReferenceTypes Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFReferenceTypes ReferenceTypes { get; }
Public ReadOnly Property ReferenceTypes As AFReferenceTypes Get Dim instance As AFDatabase Dim value As AFReferenceTypes value = instance.ReferenceTypes
public: property AFReferenceTypes^ ReferenceTypes { AFReferenceTypes^ get (); }
member ReferenceTypes : AFReferenceTypes with get
Property Value
Type: AFReferenceTypesReturns the collection of reference types maintained by the AFDatabase that can be used when defining relationships between elements.
Remarks
Reference types are used when defining a relationship between two elements. This collection contains all the available reference types on the AFDatabase. Create a new AFReferenceType by calling the AFReferenceTypes.Add method.
By default, every AFDatabase would have a Parent-Child, Composition, and Weak Reference relation types defined. These default relation types are not modifiable by the user. The Parent-Child relation is defined as a Strong n..n relationship. The Composition relation is defined as a Composition 0..n relationship. The Weak Reference relation is defined as a Weak relationship and is normally used when adding references to elements within an AFModel.