SessionStateVariableEntry Constructor (String, Object, String)

SessionStateVariableEntry Constructor (String, Object, String)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new SessionStateVariableEntry object that contains the name, value, and description of the variable. This constructor is introduced by Windows PowerShell 2.0.

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

public SessionStateVariableEntry(
	string name,
	object value,
	string description
)

Parameters

name
Type: System.String

The name of the variable.

value
Type: System.Object

The value assigned to the variable when the runspace is opened.

description
Type: System.String

A description of the variable,

A variable entry is added to the initial session state through the InitialSessionStateEntryCollection<T> object associated with the InitialSessionState.Variables property.

Return to top

Community Additions

ADD
Show:
© 2016 Microsoft