PSCmdlet.GetResolvedProviderPathFromPSPath Method (String, ProviderInfo)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Returns the resolved provider path from a specified Windows PowerShell path.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public Collection<string> GetResolvedProviderPathFromPSPath(
	string path,
	out ProviderInfo provider
)

Parameters

path
Type: System.String

The Windows PowerShell path of the provider.

provider
Type: System.Management.Automation.ProviderInfo

A ProviderInfo object that contains information about the provider.

Return Value

Type: System.Collections.ObjectModel.Collection<String>

A collection of resolved paths.

To get an unresolved path from a Windows PowerShell path, see the GetUnresolvedProviderPathFromPSPath method.

This method provides a shortcut to information that is also available through the SessionState class.

For more information about cmdlets, see Cmdlet Overview.

Return to top

Community Additions

ADD
Show: