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

AF SDK Reference

AFAttributeTrait.AllowDuplicates Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAttributeTrait.AllowDuplicates Property
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: Boolean
Returns 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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8

See Also

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