Note

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

Access to this page requires authorization. You can try .

PathInfo Class

Definition

Namespace:
System.Management.Automation
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation 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.

An object that represents a path.

public ref class PathInfo sealed
public sealed class PathInfo
type PathInfo = class
Public NotInheritable Class PathInfo
Inheritance
PathInfo

Properties

Name Description
Drive

Gets the drive that contains the path.

Path

Gets the PowerShell path that this object represents.

Provider

Gets the provider that contains the path.

ProviderPath

Gets the provider internal path for the PSPath that this PathInfo represents.

Methods

Name Description
ToString()

Gets a string representing the PowerShell path.

Applies to