NavigationCmdletProvider.IsItemContainer(String) NavigationCmdletProvider.IsItemContainer(String) NavigationCmdletProvider.IsItemContainer(String) Method


Determines if the item specified by the path is a container.

protected virtual bool IsItemContainer (string path);
abstract member IsItemContainer : string -> bool
override this.IsItemContainer : string -> bool
Protected Overridable Function IsItemContainer (path As String) As Boolean
String String String

The path to the item to determine if it is a container.


true if the item specified by path is a container, false otherwise.


Providers override this method to give the user the ability to check to see if a provider object is a container using the test-path -container cmdlet.

Providers that declare ProviderCapabilities of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those requirements by accessing the appropriate property from the base class.

The default implementation of this method throws an PSNotSupportedException.

Applies to