OPC UA browse path elements are represented by UABrowsePathElement objects. Each browse path element has following data members:
The UABrowsePathElement has various constructor overloads with different combinations of these parameters. In addition, there are static methods on the UABrowsePathElement Class that allow you to easily create commonly used browse path elements:
- The Create Method creates a new OPC-UA browse path element with given reference type and target name, for following in forward direction, and including subtypes.
- The CreateInverse Method creates a new OPC-UA browse path element with given reference type and target name, for following in inverse direction, and including subtypes.
- The CreateSimple Method creates a new OPC-UA browse path element with given target name, and specifying any hierarchical forward reference.
- There are static methods for creation of browse path elements for all standard *concrete* references, taking just the target name as input. For example, the HasProperty Method creates a browse path element for following a specific HasProperty reference in a forward direction.
The created browse path elements can then be added to a UABrowsePathElementCollection Class, forming a relative path.
See Also
Reference
Examples - Client OPC Unified Architecture