PathIntrinsics.PushCurrentLocation Method
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)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
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.
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
Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.