Partager via


ItemCmdletProviderIntrinsics.IsContainer(String) Method

Definition

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

public:
 bool IsContainer(System::String ^ path);
public:
 bool IsContainer(Platform::String ^ path);
bool IsContainer(std::wstring const & path);
public bool IsContainer (string path);
member this.IsContainer : string -> bool
Public Function IsContainer (path As String) As Boolean

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