PathIntrinsics.PopLocation(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 location off the top of the location stack.
public:
System::Management::Automation::PathInfo ^ PopLocation(System::String ^ stackName);
public System.Management.Automation.PathInfo PopLocation (string stackName);
member this.PopLocation : string -> System.Management.Automation.PathInfo
Public Function PopLocation (stackName As String) As PathInfo
Parameters
- stackName
- String
The ID of the stack to pop the location from. If stackName is null or empty the default stack is used.
Returns
The path information for the location that was on the top of the location stack.
Exceptions
If the path on the stack does not exist, is not a container, or
resolved to multiple containers.
or
If stackName
contains wildcard characters and resolves
to multiple location stacks.
or
A stack was not found with the specified name.
If the path on the stack refers to a provider that does not exist.
If the path on the stack refers to a drive that does not exist.
If the provider associated with the path on the stack threw an exception.