AFNamedCollectionList(T) Constructor (AFIdentity, AFObject)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new instance of the AFNamedCollectionListT collection
with the specified parent and without any items 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, AFObject parent )
Public Sub New ( itemIdentity As AFIdentity, parent As AFObject ) Dim itemIdentity As AFIdentity Dim parent As AFObject Dim instance As New AFNamedCollectionList(itemIdentity, parent)
public: AFNamedCollectionList( AFIdentity itemIdentity, AFObject^ parent )
new : itemIdentity : AFIdentity * parent : AFObject -> AFNamedCollectionList
Parameters
- itemIdentity
- Type: OSIsoft.AFAFIdentity
The AFIdentity of the items in the collection. - parent
- Type: OSIsoft.AFAFObject
The parent AFObject that owns this collection.
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.
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.