Cmdlet Provider. Is Item Container(String) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.