PathIntrinsics.GetResolvedProviderPathFromPSPath(String, ProviderInfo) Method

Definition

Resolves a drive or provider qualified absolute or relative path that may contain wildcard characters into one or more provider-internal paths.

public:
 System::Collections::ObjectModel::Collection<System::String ^> ^ GetResolvedProviderPathFromPSPath(System::String ^ path, [Runtime::InteropServices::Out] System::Management::Automation::ProviderInfo ^ % provider);
public System.Collections.ObjectModel.Collection<string> GetResolvedProviderPathFromPSPath (string path, out System.Management.Automation.ProviderInfo provider);
member this.GetResolvedProviderPathFromPSPath : string *  -> System.Collections.ObjectModel.Collection<string>
Public Function GetResolvedProviderPathFromPSPath (path As String, ByRef provider As ProviderInfo) As Collection(Of String)

Parameters

path
String

The drive or provider qualified path to be resolved. This path may contain wildcard characters which will get resolved.

provider
ProviderInfo

The provider for which the returned paths should be used.

Returns

An array of provider-internal paths that resolved from the given path.

Exceptions

If path is null.

If the path is a provider-qualified path for a provider that is not loaded into the system.

If the path refers to a drive that could not be found.

If the provider associated with the path threw an exception when building its path.

If the provider that the path represents is not a NavigationCmdletProvider or ContainerCmdletProvider.

If the path starts with "~" and the home location is not set for the provider.

If path does not contain wildcard characters and could not be found.

Applies to