AFNamedCollectionList(T) Constructor (AFIdentity, IEnumerable(T))
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new instance of the AFNamedCollectionListT collection with
the items in the specified IEnumerableT list with the
AFIdentity of the items specified.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNamedCollectionList( AFIdentity itemIdentity, IEnumerable<T> items )
Public Sub New ( itemIdentity As AFIdentity, items As IEnumerable(Of T) ) Dim itemIdentity As AFIdentity Dim items As IEnumerable(Of T) Dim instance As New AFNamedCollectionList(itemIdentity, items)
public: AFNamedCollectionList( AFIdentity itemIdentity, IEnumerable<T>^ items )
new : itemIdentity : AFIdentity * items : IEnumerable<'T> -> AFNamedCollectionList
Parameters
- itemIdentity
- Type: OSIsoft.AFAFIdentity
The AFIdentity of the items in the collection. - items
- Type: System.Collections.GenericIEnumerableT
The collection used to initialize this list.
Remarks
This collection is a user-defined list of objects which can contain a mixture of AFObject objects from different hierarchies. All items should have the specified AFIdentity. The list is initialized with the items from the specified items collection.
This constructor only needs to be used when the AFIdentity is ambiguous based upon the Type of the items in the list. For example, a collection of AFCategory items could contain items with an AFIdentity of CategoryAttribute, CategoryElement, CategoryReferenceType, CategoryTable, or CategoryAnalysis.