Method TryGetPathLevel
- Namespace
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Utils
- Assembly
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll
TryGetPathLevel(Path, Path, out int)
Verifies if the fullPath starts with the prefixPath and returns the index position where the fullPath further continues.
public static bool TryGetPathLevel(Path fullPath, Path prefixPath, out int pathLevel)
Parameters
fullPath
PathFull path.
prefixPath
PathPrefix path to be verified against the full path.
pathLevel
intIndex position where the full path further continues.
Returns
- bool
Boolean indicating if the fullPath starts with the prefixPath.