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
prefix
PathThe first path acting as a prefix.
path
PathThe second path to append after the prefix.
doIncludeKeys
boolIncludes 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
path
PathThe path to format.
doIncludeKeys
boolIncludes keys in the output when a path contains those.
Returns
- string
A path string containing the path node names separated by a forward slash '/'.