Sdílet prostřednictvím


PathIntrinsics.GetUnresolvedProviderPathFromPSPath Method

Definition

Overloads

GetUnresolvedProviderPathFromPSPath(String)

Converts a drive or provider qualified absolute or relative path that may contain wildcard characters into one a provider-internal path still containing the wildcard characters.

GetUnresolvedProviderPathFromPSPath(String, ProviderInfo, PSDriveInfo)

Converts a drive or provider qualified absolute or relative path that may contain wildcard characters into one a provider-internal path still containing the wildcard characters.

GetUnresolvedProviderPathFromPSPath(String)

Converts a drive or provider qualified absolute or relative path that may contain wildcard characters into one a provider-internal path still containing the wildcard characters.

public:
 System::String ^ GetUnresolvedProviderPathFromPSPath(System::String ^ path);
public:
 Platform::String ^ GetUnresolvedProviderPathFromPSPath(Platform::String ^ path);
std::wstring GetUnresolvedProviderPathFromPSPath(std::wstring const & path);
public string GetUnresolvedProviderPathFromPSPath (string path);
member this.GetUnresolvedProviderPathFromPSPath : string -> string
Public Function GetUnresolvedProviderPathFromPSPath (path As String) As String

Parameters

path
String

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

Returns

A provider-internal path that does not have the wildcard characters resolved.

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 specified by path threw an exception.

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.

Applies to

GetUnresolvedProviderPathFromPSPath(String, ProviderInfo, PSDriveInfo)

Converts a drive or provider qualified absolute or relative path that may contain wildcard characters into one a provider-internal path still containing the wildcard characters.

public:
 System::String ^ GetUnresolvedProviderPathFromPSPath(System::String ^ path, [Runtime::InteropServices::Out] System::Management::Automation::ProviderInfo ^ % provider, [Runtime::InteropServices::Out] System::Management::Automation::PSDriveInfo ^ % drive);
public string GetUnresolvedProviderPathFromPSPath (string path, out System.Management.Automation.ProviderInfo provider, out System.Management.Automation.PSDriveInfo drive);
member this.GetUnresolvedProviderPathFromPSPath : string * ProviderInfo * PSDriveInfo -> string
Public Function GetUnresolvedProviderPathFromPSPath (path As String, ByRef provider As ProviderInfo, ByRef drive As PSDriveInfo) As String

Parameters

path
String

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

provider
ProviderInfo

The information for the provider for which the returned path should be used.

drive
PSDriveInfo

The drive of the PowerShell path that was used to convert the path. Note, this may be null if the path was a provider-qualified path.

Returns

A provider-internal path that does not have the wildcard characters resolved.

Exceptions

If path or context 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 specified by provider threw an exception when its GetParentPath or MakePath was called while processing the 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.

Applies to