Table of Contents

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 Path

Full path.

prefixPath Path

Prefix path to be verified against the full path.

pathLevel int

Index position where the full path further continues.

Returns

bool

Boolean indicating if the fullPath starts with the prefixPath.