Method ConvertPathToString
- Namespace
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Utils
- Assembly
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll
ConvertPathToString(Path, Path, bool)
Converts two gNMI Path objects into a single path string.
public static string ConvertPathToString(Path prefix, Path path, bool doIncludeKeys = true)
Parameters
prefixPathThe first path acting as a prefix.
pathPathThe second path to append after the prefix.
doIncludeKeysboolIncludes keys in the output when a path contains those.
Returns
- string
A path string containing the path node names separated by a forward slash '/'.
ConvertPathToString(Path, bool)
Converts a gNMI Path object into a path string.
public static string ConvertPathToString(Path path, bool doIncludeKeys = true)
Parameters
pathPathThe path to format.
doIncludeKeysboolIncludes keys in the output when a path contains those.
Returns
- string
A path string containing the path node names separated by a forward slash '/'.