PSVariableIntrinsics PSVariableIntrinsics PSVariableIntrinsics Class

Definition

Exposes the APIs to manipulate variables in the Runspace.

public sealed class PSVariableIntrinsics
type PSVariableIntrinsics = class
Public NotInheritable Class PSVariableIntrinsics
Inheritance
PSVariableIntrinsicsPSVariableIntrinsicsPSVariableIntrinsics

Methods

Get(String) Get(String) Get(String)

Gets the specified variable from session state.

GetValue(String) GetValue(String) GetValue(String)

Gets the specified variable value from session state.

GetValue(String, Object) GetValue(String, Object) GetValue(String, Object)

Gets the specified variable from session state. If the variable is not found the default value is returned.

Remove(PSVariable) Remove(PSVariable) Remove(PSVariable)

Removes the specified variable from session state.

Remove(String) Remove(String) Remove(String)

Removes the specified variable from session state.

Set(PSVariable) Set(PSVariable) Set(PSVariable)

Sets the variable.

Set(String, Object) Set(String, Object) Set(String, Object)

Sets the variable to the specified value.

Applies to