The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NavigationCmdletProvider.GetChildName Method (String)


Updated: April 27, 2016

Applies To: Windows PowerShell

Extracts the name of the child node of a path.

Namespace:   System.Management.Automation.Provider
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

protected virtual string GetChildName(
	string path


Type: System.String

The path to be parsed.

Return Value

Type: System.String

The name of the child node.

This method must be overridden to retrieve the child node of paths based on the syntax of the paths that the navigation provider is using. For example, the path "c:\windows\system32\notepad.exe" sent to GetChildName should return "notepad.exe" as the child name of the path. In contrast, the AD path "LDAP:://ntdev/CN=David Jones,OU=UsersOU,DC=ntdev,DC=corp,DC=microsoft,DC=com" passed to GetChildName should return a child name of "CN=David Jones". Note that each provider may have a different path syntax.

For more information about providers, see Windows PowerShell Providers [ps].

Return to top

Community Additions