PathIntrinsics.CurrentProviderLocation(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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