Sdílet prostřednictvím


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