PathIntrinsics.GetUnresolvedProviderPathFromPSPath PathIntrinsics.GetUnresolvedProviderPathFromPSPath PathIntrinsics.GetUnresolvedProviderPathFromPSPath Method

Definition

Overloads

GetUnresolvedProviderPathFromPSPath(String) GetUnresolvedProviderPathFromPSPath(String) 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) GetUnresolvedProviderPathFromPSPath(String, ProviderInfo, PSDriveInfo) 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) GetUnresolvedProviderPathFromPSPath(String) 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 string GetUnresolvedProviderPathFromPSPath (string path);
member this.GetUnresolvedProviderPathFromPSPath : string -> string
Public Function GetUnresolvedProviderPathFromPSPath (path As String) As String
Parameters
path
String String 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 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.

GetUnresolvedProviderPathFromPSPath(String, ProviderInfo, PSDriveInfo) GetUnresolvedProviderPathFromPSPath(String, ProviderInfo, PSDriveInfo) 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 string GetUnresolvedProviderPathFromPSPath (string path, out System.Management.Automation.ProviderInfo provider, out System.Management.Automation.PSDriveInfo drive);
member this.GetUnresolvedProviderPathFromPSPath : string *  *  -> string
Public Function GetUnresolvedProviderPathFromPSPath (path As String, ByRef provider As ProviderInfo, ByRef drive As PSDriveInfo) As String
Parameters
path
String String String

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

provider
ProviderInfo ProviderInfo ProviderInfo

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

drive
PSDriveInfo PSDriveInfo PSDriveInfo

The drive of the Msh 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 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