Condividi tramite


NavigationCmdletProvider.IsItemContainer(String) Method

Definition

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

protected:
 virtual bool IsItemContainer(System::String ^ path);
protected:
 virtual bool IsItemContainer(Platform::String ^ path);
 virtual bool IsItemContainer(std::wstring const & path);
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

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