PathIntrinsics.GetResolvedProviderPathFromPSPath Method (String, ProviderInfo)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Obtains one or more provider-internal paths from a specified drive-qualified or provider-qualified absolute or relative 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 drive-qualified or provider-qualified absolute or relative path to be resolved.

provider
Type: System.Management.Automation.ProviderInfo

The identifier for the provider that will use the resolved paths.

Return Value

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

A Collection<T> of String objects that contain the resolved internal-provided paths. Multiple paths are returned if the specified path included wildcards.

Exception Condition
ArgumentNullException

The path parameter is null.

NotSupportedException

The specified path is a provider-qualified path for a provider that is not a navigation or container provider.

InvalidOperationException

The specified path is a provider-qualified path for a provider whose home location is not set, and the path starts with a tilde character (~).

ProviderNotFoundException

The specified path is a provider-qualified path for a provider that is not loaded.

DriveNotFoundException

The specified path is a drive-qualified path for a drive that could not be found.

ItemNotFoundException

The specified path does not contain wildcards and cannot be found.

ProviderInvocationException

The provider used to build the path throws an exception.

Return to top

Community Additions

ADD
Show: