AFAttributeTrait.AllowDuplicates Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Indicates if the parent AFAttribute is allowed to have duplicates of this trait defined.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool AllowDuplicates { get; }
Public ReadOnly Property AllowDuplicates As Boolean Get Dim instance As AFAttributeTrait Dim value As Boolean value = instance.AllowDuplicates
public: property bool AllowDuplicates { bool get (); }
member AllowDuplicates : bool with get
Property Value
Type: BooleanReturns if the parent AFAttribute is allowed to have duplicates of this trait defined.
Remarks
If duplicates are not allowed for this trait, then any existing attribute that has the same trait will be unset
when the new attribute's trait is set.
When the IsAllowedOnRootAttribute behavior is set and this behavior is ,
then duplicates are not allowed in the full hierarchy of attributes.