ContainerCmdletProvider.HasChildItems
Method
Definition
Determines if the item at the specified path has children.
protected virtual bool HasChildItems (string path);
Parameters
- path
- String
The path to the item to see if it has children.
Returns
True if the item has children, false otherwise.
Remarks
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 <xref href="System.Management.Automation.Provider.ContainerCmdletProvider"></xref> 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 <xref href="System.Management.Automation.PSNotSupportedException"></xref>.