NavigationCmdletProvider.MakePath Method

Definition

Overloads

MakePath(String, String)

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

MakePath(String, String, Boolean)

MakePath(String, String)

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

protected virtual string MakePath (string parent, string child);
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.

MakePath(String, String, Boolean)

protected string MakePath (string parent, string child, bool childIsLeaf);
Parameters
parent
String
child
String
childIsLeaf
Boolean
Returns