PathIntrinsics.SetDefaultLocationStack(String) Method

Definition

Sets the default ___location stack to that specified by the stack ID.

public:
 System::Management::Automation::PathInfoStack ^ SetDefaultLocationStack(System::String ^ stackName);
public System.Management.Automation.PathInfoStack SetDefaultLocationStack (string stackName);
member this.SetDefaultLocationStack : string -> System.Management.Automation.PathInfoStack
Public Function SetDefaultLocationStack (stackName As String) As PathInfoStack

Parameters

stackName
String

The stack ID of the stack to use as the default ___location stack.

Returns

Exceptions

If stackName does not exist as a ___location stack.

Applies to