NavigationCmdletProvider.GetChildName Method (String)
Updated: April 27, 2016
Applies To: Windows PowerShell
Extracts the name of the child node of a path.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
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 toshould 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 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].