The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InitialSessionState.Variables Property


Updated: April 27, 2016

Applies To: Windows PowerShell

Gets a collection that contains the variables of the initial session state. The host application can use this collection to add variables to the session state. This property is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation.Runspaces
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public virtual InitialSessionStateEntryCollection<SessionStateVariableEntry> Variables { get; }

Property Value

Type: System.Management.Automation.Runspaces.InitialSessionStateEntryCollection<SessionStateVariableEntry>

An InitialSessionStateEntryCollection<T> object that contains a SessionStateVariableEntry object for each variable that is accessible when the runspace is opened.

Return to top

Community Additions