共用方式為


NavigationCmdletProvider.MakePath Method

Definition

Overloads

MakePath(String, String)

Joins two strings with a path a provider specific path separator.

MakePath(String, String, Boolean)

Joins two strings with a path a provider specific path separator.

MakePath(String, String)

Joins two strings with a path a provider specific path separator.

protected:
 virtual System::String ^ MakePath(System::String ^ parent, System::String ^ child);
protected:
 virtual Platform::String ^ MakePath(Platform::String ^ parent, Platform::String ^ child);
 virtual std::wstring MakePath(std::wstring const & parent, std::wstring const & child);
protected virtual string MakePath (string parent, string child);
abstract member MakePath : string * string -> string
override this.MakePath : string * string -> string
Protected Overridable Function MakePath (parent As String, child As String) As String

Parameters

parent
String

The parent segment of a path to be joined with the child.

child
String

The child segment of a path to be joined with the parent.

Returns

A string that represents the parent and child segments of the path joined by a path separator.

Remarks

This method should use lexical joining of two path segments with a path separator character. It should not validate the path as a legal fully qualified path in the provider namespace as each parameter could be only partial segments of a path and joined they may not generate a fully qualified path. Example: the file system provider may get "windows\system32" as the parent parameter and "foo.dll" as the child parameter. The method should join these with the "\" separator and return "windows\system32\foo.dll". Note that the returned path is not a fully qualified file system path.

Also beware that the path segments may contain characters that are illegal in the provider namespace. These characters are most likely being used for globbing and should not be removed by the implementation of this method.

Applies to

MakePath(String, String, Boolean)

Joins two strings with a path a provider specific path separator.

protected:
 System::String ^ MakePath(System::String ^ parent, System::String ^ child, bool childIsLeaf);
protected:
 Platform::String ^ MakePath(Platform::String ^ parent, Platform::String ^ child, bool childIsLeaf);
std::wstring MakePath(std::wstring const & parent, std::wstring const & child, bool childIsLeaf);
protected string MakePath (string parent, string child, bool childIsLeaf);
member this.MakePath : string * string * bool -> string
Protected Function MakePath (parent As String, child As String, childIsLeaf As Boolean) As String

Parameters

parent
String

The parent segment of a path to be joined with the child.

child
String

The child segment of a path to be joined with the parent.

childIsLeaf
Boolean

Indicate that the child is the name of a child item that's guaranteed to exist

Returns

New path string.

Remarks

If the childIsLeaf is True, then we don't normalize the child path, and would do some checks to decide whether to normalize the parent path.

Applies to