Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...
- Jr. Member
- Posts: 1
- Joined: 03 May 2019, 12:55
I want to add instances and/or properties within a server. However, it could be that they already exist, since the used instance declaration marks the child objects as mandatory. Only the BrowseName/BrowsePath can be used to check the existence of an object, because the namespace index of the object is not known at the time of the check. Derived declarations with extensions and overrides were used when creating the object. Which procedure should be used to e.g. to determine the node ID of an instance or an object within a server? It would be nice to get a code snippet as an example.
Example object tree:
Code: Select all
+--- [Node A] (will be created dynamically in C# code. The Type is a multiple derived instance declaration)
+--- [Node B] (can be optional or mandatory, I don't now. The namespace index can be e.g. 4 or 5 or 6)
+---- [Node C] (can be optional or mandatory, ...)
+---- [Node D] (can be optional or mandatory, ...)
How to check the existence of node B, C and D?
Thanks in advance for your help.