ConfigurationPath.GetParentPath(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.