Share via


PathIntrinsics.CurrentProviderLocation(String) Method

Definition

Gets the current location for a specific provider.

public:
 System::Management::Automation::PathInfo ^ CurrentProviderLocation(System::String ^ providerName);
public System.Management.Automation.PathInfo CurrentProviderLocation (string providerName);
member this.CurrentProviderLocation : string -> System.Management.Automation.PathInfo
Public Function CurrentProviderLocation (providerName As String) As PathInfo

Parameters

providerName
String

The name of the provider to get the current location for.

Returns

Exceptions

If providerName is null.

If namespacesID refers to a provider that does not exist.

If a current drive cannot be found for the provider providerName

Applies to