Windows Dev Center

PathIntrinsics.GetResolvedProviderPathFromPSPath Method

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)

'Usage
Dim instance As PathIntrinsics
Dim path As String
Dim provider As ProviderInfo
Dim returnValue As Collection(Of String)

returnValue = instance.GetResolvedProviderPathFromPSPath(path, provider)

public Collection<string> GetResolvedProviderPathFromPSPath (
	string path,
	out ProviderInfo provider
)
public Collection<String> GetResolvedProviderPathFromPSPath (
	String path, 
	/** @attribute OutAttribute() */ /** @ref */ ProviderInfo provider
)

Parameters

path

The drive-qualified or provider-qualified absolute or relative path to be resolved.

provider

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

Return Value

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

Exception typeCondition
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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2015 Microsoft