ConfigurationPath.GetParentPath(String) Method

Definition

Extracts the path corresponding to the parent node for a given path.

public:
 static System::String ^ GetParentPath(System::String ^ path);
public static string GetParentPath (string path);
public static string? GetParentPath (string? path);
static member GetParentPath : string -> string
Public Shared Function GetParentPath (path As String) As String

Parameters

path
String

The path.

Returns

The original path minus the last individual segment found in it. Null if the original path corresponds to a top level node.

Applies to