Intrinsics. Pop Location(String) Method
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
The ID of the stack to pop the location from. If stackName is null or empty the default stack is used.
The path information for the location that was on the top of the location stack.
If the path on the stack does not exist, is not a container, or
resolved to multiple containers.
stackName contains wildcard characters and resolves
to multiple location stacks.
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.