Udostępnij za pośrednictwem


InvokeCommandCommand.NoNewScope Property

Definition

When executing a scriptblock in the current session, tell the cmdlet not to create a new scope.

public:
 property System::Management::Automation::SwitchParameter NoNewScope { System::Management::Automation::SwitchParameter get(); void set(System::Management::Automation::SwitchParameter value); };
public System.Management.Automation.SwitchParameter NoNewScope { get; set; }
[System.Management.Automation.Parameter(ParameterSetName="InProcess")]
public System.Management.Automation.SwitchParameter NoNewScope { get; set; }
member this.NoNewScope : System.Management.Automation.SwitchParameter with get, set
[<System.Management.Automation.Parameter(ParameterSetName="InProcess")>]
member this.NoNewScope : System.Management.Automation.SwitchParameter with get, set
Public Property NoNewScope As SwitchParameter

Property Value

Attributes

Applies to