CVB.Net 14.0
NodeDictionary< TNode > Class Template Reference

A dictionary holding dependent nodes of a Parent node. More...

Inherits NodeDictionaryBase< TNode >.

Public Member Functions

void UpdateCollection ()
 Reads out all currently available nodes.
 
- Public Member Functions inherited from NodeDictionaryBase< TNode >
void Dispose ()
 Disposes of this dictionary and all its nodes.
 
bool ContainsKey (string key)
 Gets whether this dictionaries contains the given key . More...
 
bool Remove (string key)
 Removes the node identified by the given key . More...
 

Protected Member Functions

override void AddNode (string key, TNode value)
 Adds a new node to this dictionary. More...
 
override bool RemoveNode (string key)
 Removes a TNode identified by the given key . More...
 
- Protected Member Functions inherited from NodeDictionaryBase< TNode >
virtual void Dispose (bool disposing)
 Dispose implementation. More...
 
abstract void AddNode (string key, TNode value)
 Adds a new TNode value associated to the given key . More...
 
abstract bool RemoveNode (string key)
 Removes the node at the given key . More...
 
TNode GetNode (string key)
 Actual implementation for getting nodes. More...
 
bool TryGetNode (string key, out TNode value)
 Tries to get the TNode value with the given key . More...
 

Properties

Node Parent [get]
 The parent node of this collection.
 
override bool IsReadOnly [get]
 Gets whether this dictionary is read only. More...
 
- Properties inherited from NodeDictionaryBase< TNode >
bool IsDisposed [get]
 Gets whether this dictionary has been disposed.
 
IDictionary< string, TNode > Nodes = new Dictionary<string, TNode>() [get]
 Gets the dictionary holding all node objects.
 
TNode this[string key] [get, set]
 Indexer of this dictionary to get/add TNode objects. More...
 
int Count [get]
 Gets the number of TNodes in this dictionary.
 
abstract bool IsReadOnly [get]
 Gets whether this dictionary is read only.
 
ICollection< string > Keys [get]
 Gets the keys for all nodes.
 
ICollection< TNode > Values [get]
 Gets all the TNodes in this dictionary.
 

Detailed Description

A dictionary holding dependent nodes of a Parent node.

Template Parameters
TNode
Type Constraints
TNode :Node 

Member Function Documentation

◆ AddNode()

override void AddNode ( string  key,
TNode  value 
)
protectedvirtual

Adds a new node to this dictionary.

Parameters
keyKey identifying the given value .
valueNode associated to key .

Implements NodeDictionaryBase< TNode >.

◆ RemoveNode()

override bool RemoveNode ( string  key)
protectedvirtual

Removes a TNode identified by the given key .

Parameters
keyKey of item to be removed.
Returns
true if the key was removed; false if not present.

Implements NodeDictionaryBase< TNode >.

Property Documentation

◆ IsReadOnly

override bool IsReadOnly
get

Gets whether this dictionary is read only.

Read only when no Parent NodeMap is set or the GevServer is not in the GevServerState.Configuration GevServer.State.