Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TestPathType Enum

Definition

Namespace:
Microsoft.PowerShell.Commands
Assembly:
Microsoft.PowerShell.Commands.Management.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
Microsoft.PowerShell.Commands.Management v7.4.15
Package:
Microsoft.PowerShell.Commands.Management v7.5.6
Package:
Microsoft.PowerShell.Commands.Management v7.6.1

Important

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.

The valid values for the -PathType parameter for test-path.

public enum class TestPathType
public enum class TestPathType
enum TestPathType
public enum TestPathType
type TestPathType = 
Public Enum TestPathType
Inheritance
TestPathType

Fields

Name Value Description
Any 0

If the item at the path exists, true will be returned.

Container 1

If the item at the path exists and is a container, true will be returned.

Leaf 2

If the item at the path exists and is not a container, true will be returned.

Applies to