Partilhar via


NavigationCmdletProvider.GetChildName(String) Method

Definition

Gets the name of the leaf element in the specified path.

protected:
 virtual System::String ^ GetChildName(System::String ^ path);
protected:
 virtual Platform::String ^ GetChildName(Platform::String ^ path);
 virtual std::wstring GetChildName(std::wstring const & path);
protected virtual string GetChildName (string path);
abstract member GetChildName : string -> string
override this.GetChildName : string -> string
Protected Overridable Function GetChildName (path As String) As String

Parameters

path
String

The fully qualified path to the item

Returns

The leaf element in the path.

Remarks

This should be implemented as a split on the path separator. The characters in the fullPath may not be legal characters in the namespace but may be used in globing or regular expression matching. The provider should not error unless there are no path separators in the fully qualified path.

Applies to