Partager via


PathIntrinsics.GetResolvedPSPathFromPSPath(String) Method

Definition

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

public:
 System::Collections::ObjectModel::Collection<System::Management::Automation::PathInfo ^> ^ GetResolvedPSPathFromPSPath(System::String ^ path);
public System.Collections.ObjectModel.Collection<System.Management.Automation.PathInfo> GetResolvedPSPathFromPSPath (string path);
member this.GetResolvedPSPathFromPSPath : string -> System.Collections.ObjectModel.Collection<System.Management.Automation.PathInfo>
Public Function GetResolvedPSPathFromPSPath (path As String) As Collection(Of PathInfo)

Parameters

path
String

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

Returns

An array of PowerShell paths that resolved from the given path.

Exceptions

If path is null.

If path is a provider-qualified path and the specified provider does not exist.

If path is a drive-qualified path and the specified drive does not exist.

If the provider throws an exception when its MakePath gets called.

If the provider does not support multiple items.

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

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

Applies to