PSCmdlet.CurrentProviderLocation Method

Returns the fully-qualified path of the current working directory for the specified provider.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As PSCmdlet
Dim providerId As String
Dim returnValue As PathInfo

returnValue = instance.CurrentProviderLocation(providerId)

'Declaration
Public Function CurrentProviderLocation ( _
	providerId As String _
) As PathInfo
public PathInfo CurrentProviderLocation (
	String providerId
)
public function CurrentProviderLocation (
	providerId : String
) : PathInfo

Parameters

providerId

The identifier of the provider.

Return Value

A PathInfo object that contains the fully-qualified path of the current working directory for the specified provider.

This method provides a shortcut to information that is also available through the SessionState class.

For more information about cmdlets, see Windows PowerShell Cmdlets.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2014 Microsoft