Sdílet prostřednictvím


PathIntrinsics.GetResolvedProviderPathFromProviderPath(String, String) 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 ^> ^ GetResolvedProviderPathFromProviderPath(System::String ^ path, System::String ^ providerId);
public System.Collections.ObjectModel.Collection<string> GetResolvedProviderPathFromProviderPath (string path, string providerId);
member this.GetResolvedProviderPathFromProviderPath : string * string -> System.Collections.ObjectModel.Collection<string>
Public Function GetResolvedProviderPathFromProviderPath (path As String, providerId As String) 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.

providerId
String

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 providerId references a provider that does not exist.

If the providerId references a provider that is not a ContainerCmdletProvider.

If the provider used to build the path threw an exception.

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