Share via


PathIntrinsics.ParseParent(String, String) Method

Definition

Gets the parent path of the specified path.

public:
 System::String ^ ParseParent(System::String ^ path, System::String ^ root);
public:
 Platform::String ^ ParseParent(Platform::String ^ path, Platform::String ^ root);
std::wstring ParseParent(std::wstring const & path, std::wstring const & root);
public string ParseParent (string path, string root);
member this.ParseParent : string * string -> string
Public Function ParseParent (path As String, root As String) As String

Parameters

path
String

The path to get the parent path from.

root
String

If the root is specified the path returned will not be any higher than the root.

Returns

The parent path of the specified path.

Exceptions

If path is null.

If the providerInstance does not support this operation.

If the pipeline is being stopped while executing the command.

If the provider threw an exception.

Applies to