次の方法で共有


ContainerCmdletProvider.HasChildItems(String) Method

Definition

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

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 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.

Applies to