Cmdlet Provider. Has Child Items(String) Method
Determines if the item at the specified path has children.
protected: virtual bool HasChildItems(System::String ^ path);
protected: virtual bool HasChildItems(Platform::String ^ path);
virtual bool HasChildItems(std::wstring const & path);
protected virtual bool HasChildItems (string path);
abstract member HasChildItems : string -> bool override this.HasChildItems : string -> bool
Protected Overridable Function HasChildItems (path As String) As Boolean
The path to the item to see if it has children.
True if the item has children, false otherwise.
Providers override this method to give the provider infrastructure the ability to determine if a particular provider object has children without having to retrieve all the child items.
For implementers of ContainerCmdletProvider classes and those derived from it, if a null or empty path is passed, the provider should consider any items in the data store to be children and return true.
The default implementation of this method throws an PSNotSupportedException.