PathIntrinsics.PushCurrentLocation Method (String)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Pushes the current location onto the specified location stack or the default location stack.

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

public void PushCurrentLocation(
	string stackName
)

Parameters

stackName
Type: System.String

The name (identifier) of the specified location stack.

If no stack name is specified, the current location is pushed onto the default location stack. To set the default location stack, see the SetDefaultLocationStack method.

To pop off the last location from the stack, see the PopLocation method.

To retrieve the complete location stack, see the LocationStack method.

Return to top

Community Additions

ADD
Show: