NavigationCmdletProvider.IsItemContainer Method

Definition

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

protected virtual bool IsItemContainer (string path);
Parameters
path
String

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

Returns

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

Remarks

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 <xref href="System.Management.Automation.Provider.ProviderCapabilities"></xref>
        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 <xref href="System.Management.Automation.PSNotSupportedException"></xref>.