Method ConvertPathToStringLimited
- Namespace
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Utils
- Assembly
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll
ConvertPathToStringLimited(Path, int, bool)
Converts a limited gNMI PathElem object into a path string.
public static string ConvertPathToStringLimited(Path path, int length, bool doIncludeKeys)
Parameters
pathPathThe path to convert.
lengthintThe number of path elements to be included in the result.
doIncludeKeysboolBoolean indicating if the path element keys need to be added.
Returns
- string
A path string containing the path node names separated by a forward slash '/'.