ItemCmdletProviderIntrinsics.IsContainer(String) Method

Definition

Determines if the specified path is to an item that is a container.

C++
public:
 bool IsContainer(System::String ^ path);

Parameters

path
String

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

Returns

True if the path is to an item that is a container. False otherwise.

Exceptions

If path is null.

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If the provider that the path refers to does not support this operation.

If the provider threw an exception.

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0