~~NOTRANS~~ ====== OpcNodeReferenceCollection Class ====== **Namespace:** Opc.UaFx \\ **Assemblies:** Opc.UaFx.Advanced.dll Provides a collection of [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances where the [[Opc.UaFx.OpcNodeReferenceMembers#NodeId|NodeId]] is used as the key of each entry. **C#** \\ <code csharp> public class OpcNodeReferenceCollection : KeyedCollection<OpcNodeId, OpcNodeReference>, IList<OpcNodeReference>, ICollection<OpcNodeReference>, IList, ICollection, IReadOnlyList<OpcNodeReference>, IReadOnlyCollection<OpcNodeReference>, IEnumerable<OpcNodeReference>, IEnumerable </code> \\ **Inheritance** [[https://docs.microsoft.com/en-us/dotnet/api/system.object|Object]] › [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.objectmodel.collection|Collection]]<[[Opc.UaFx.OpcNodeReference|OpcNodeReference]]> › [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.objectmodel.keyedcollection|KeyedCollection]]<[[Opc.UaFx.OpcNodeId|OpcNodeId]], [[Opc.UaFx.OpcNodeReference|OpcNodeReference]]> › OpcNodeReferenceCollection \\ **Implements** [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ilist|IList]]<[[Opc.UaFx.OpcNodeReference|OpcNodeReference]]>, [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.icollection|ICollection]]<[[Opc.UaFx.OpcNodeReference|OpcNodeReference]]>, [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.ilist|IList]], [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.icollection|ICollection]], [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlylist|IReadOnlyList]]<[[Opc.UaFx.OpcNodeReference|OpcNodeReference]]>, [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection|IReadOnlyCollection]]<[[Opc.UaFx.OpcNodeReference|OpcNodeReference]]>, [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable|IEnumerable]]<[[Opc.UaFx.OpcNodeReference|OpcNodeReference]]>, [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerable|IEnumerable]] ===== Constructors ===== <panel> ^ Name ^ Description ^ | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#OpcNodeReferenceCollection|OpcNodeReferenceCollection]] | Initializes a new instance of the [[Opc.UaFx.OpcNodeReferenceCollection|OpcNodeReferenceCollection]] class. | </panel> ===== Methods ===== <panel> ^ Name ^ Description ^ | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-IOpcNode-IEnumerable-OpcReference|Add]]([[Opc.UaFx.IOpcNode|IOpcNode]], [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable|IEnumerable]]) | Adds a [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instance representing a node / references bundle using the ''node'' and the ''references'' specified. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-IOpcNode-OpcNodeId|Add]]([[Opc.UaFx.IOpcNode|IOpcNode]], [[Opc.UaFx.OpcNodeId|OpcNodeId]]) | Adds [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances representing a bidirectional relation between the ''sourceNode'' and the node identified by the ''targetNodeId'' specified. The references created represent a [[Opc.UaFx.OpcReferenceDirectionMembers#ParentToChild|ParentToChild]] and [[Opc.UaFx.OpcReferenceDirectionMembers#ChildToParent|ChildToParent]] relation using [[Opc.UaFx.OpcReferenceTypeMembers#Organizes|Organizes]] as the type of reference. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-IOpcNode-OpcNodeId-Nullable-OpcReferenceDirection|Add]]([[Opc.UaFx.IOpcNode|IOpcNode]], [[Opc.UaFx.OpcNodeId|OpcNodeId]], [[https://docs.microsoft.com/en-us/dotnet/api/system.nullable|Nullable]]) | Adds [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances representing either a bidirectional or a unidirectional relation between the ''sourceNode'' and the target identified by the ''targetNodeId'' specified. The references created depend on the value specified by ''direction'' using [[Opc.UaFx.OpcReferenceTypeMembers#Organizes|Organizes]] as the type of reference. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-IOpcNode-OpcNodeId-Nullable-OpcReferenceDirection-OpcNodeId|Add]]([[Opc.UaFx.IOpcNode|IOpcNode]], [[Opc.UaFx.OpcNodeId|OpcNodeId]], [[https://docs.microsoft.com/en-us/dotnet/api/system.nullable|Nullable]], [[Opc.UaFx.OpcNodeId|OpcNodeId]]) | Adds [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances representing either a bidirectional or a unidirectional relation between the ''sourceNode'' and the target identified by the ''targetNodeId'' specified. The references created depend on the value specified by ''direction'' using the type of reference identified by the ''referenceTypeId'' specified. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-IOpcNode-OpcNodeId-Nullable-OpcReferenceDirection-OpcReferenceType|Add]]([[Opc.UaFx.IOpcNode|IOpcNode]], [[Opc.UaFx.OpcNodeId|OpcNodeId]], [[https://docs.microsoft.com/en-us/dotnet/api/system.nullable|Nullable]], [[Opc.UaFx.OpcReferenceType|OpcReferenceType]]) | Adds [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances representing either a bidirectional or a unidirectional relation between the ''sourceNode'' and the target identified by the ''targetNodeId'' specified. The references created depend on the value specified by ''direction'' using the ''referenceType'' as the type of reference. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-IOpcNode-OpcReference|Add]]([[Opc.UaFx.IOpcNode|IOpcNode]], [[Opc.UaFx.OpcReference|OpcReference]]) | Adds a [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instance representing a node / references bundle using the ''node'' and the ''references'' specified. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-OpcNodeId-IEnumerable-OpcReference|Add]]([[Opc.UaFx.OpcNodeId|OpcNodeId]], [[https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable|IEnumerable]]) | Adds a [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instance representing a node / references bundle using the node identified by the ''nodeId'' and the ''references'' specified. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-OpcNodeId-OpcNodeId|Add]]([[Opc.UaFx.OpcNodeId|OpcNodeId]], [[Opc.UaFx.OpcNodeId|OpcNodeId]]) | Adds [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances representing a bidirectional relation between the source identified by the ''sourceNodeId'' and the node identified by the ''targetNodeId'' specified. The references created represent a [[Opc.UaFx.OpcReferenceDirectionMembers#ParentToChild|ParentToChild]] and [[Opc.UaFx.OpcReferenceDirectionMembers#ChildToParent|ChildToParent]] relation using [[Opc.UaFx.OpcReferenceTypeMembers#Organizes|Organizes]] as the type of reference. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-OpcNodeId-OpcNodeId-Nullable-OpcReferenceDirection|Add]]([[Opc.UaFx.OpcNodeId|OpcNodeId]], [[Opc.UaFx.OpcNodeId|OpcNodeId]], [[https://docs.microsoft.com/en-us/dotnet/api/system.nullable|Nullable]]) | Adds [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances representing either a bidirectional or a unidirectional relation between the source identified by ''sourceNodeId'' and the target identified by the ''targetNodeId'' specified. The references created depend on the value specified by ''direction'' using [[Opc.UaFx.OpcReferenceTypeMembers#Organizes|Organizes]] as the type of reference. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-OpcNodeId-OpcNodeId-Nullable-OpcReferenceDirection-OpcNodeId|Add]]([[Opc.UaFx.OpcNodeId|OpcNodeId]], [[Opc.UaFx.OpcNodeId|OpcNodeId]], [[https://docs.microsoft.com/en-us/dotnet/api/system.nullable|Nullable]], [[Opc.UaFx.OpcNodeId|OpcNodeId]]) | Adds [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances representing either a bidirectional or a unidirectional relation between the source identified by the ''sourceNodeId'' and the target identified by the ''targetNodeId'' specified. The references created depend on the value specified by ''direction'' using the type of reference identified by the ''referenceTypeId'' specified. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-OpcNodeId-OpcNodeId-Nullable-OpcReferenceDirection-OpcReferenceType|Add]]([[Opc.UaFx.OpcNodeId|OpcNodeId]], [[Opc.UaFx.OpcNodeId|OpcNodeId]], [[https://docs.microsoft.com/en-us/dotnet/api/system.nullable|Nullable]], [[Opc.UaFx.OpcReferenceType|OpcReferenceType]]) | Adds [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instances representing either a bidirectional or a unidirectional relation between the source identified by the ''sourceNodeId'' and the target identified by the ''targetNodeId'' specified. The references created depend on the value specified by ''direction'' using the ''referenceType'' as the type of reference. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#Add-OpcNodeId-OpcReference|Add]]([[Opc.UaFx.OpcNodeId|OpcNodeId]], [[Opc.UaFx.OpcReference|OpcReference]]) | Adds a [[Opc.UaFx.OpcNodeReference|OpcNodeReference]] instance representing a node / references bundle using the node identified by the ''nodeId'' and the ''references'' specified. | | [[Opc.UaFx.OpcNodeReferenceCollectionMembers#GetKeyForItem-OpcNodeReference|GetKeyForItem]]([[Opc.UaFx.OpcNodeReference|OpcNodeReference]]) | Extracts the key from the specified element. | </panel>