When browsing nodes on the server from a client I do something like this:
Code: Select all
byte[] continuationPoint;
BrowseContext browseContext = new BrowseContext { BrowseDirection = BrowseDirection.Forward, ReferenceTypeId = ReferenceTypeIds.HierarchicalReferences, IncludeSubtypes = true };
List<ReferenceDescription> referenceDescriptions = _session.Browse(nodeId, browseContext, out continuationPoint);
1. The data type of the reference target
2. If the reference target has any child objects
I have accomplished this, but I feel that it might not be the best solution.