Windows desktop applications
Collapse the table of content
Expand the table of content
Information
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.

SessionStateVariableEntry Constructor

Creates a new SessionStateVariableEntry object. The variants of this constructor create an object that contains the name, value, and a description of the variable, create an object that contains the name, value, description, and usage options, and more. This constructor is introduced by Windows PowerShell 2.0.

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

InitialSessionStateEntryCollectionInitialSessionState.VariablesWindows PowerShell SDK

NameDescription
SessionStateVariableEntry (String, Object, String)Creates a new SessionStateVariableEntry object that contains the name, value, and description of the variable. This constructor is introduced by Windows PowerShell 2.0.
SessionStateVariableEntry (String, Object, String, ScopedItemOptions)Creates a new SessionStateVariableEntry object that contains the name, value, description, and usage options for the variable. This constructor is introduced by Windows PowerShell 2.0.
SessionStateVariableEntry (String, Object, String, ScopedItemOptions, Attribute)Creates a new SessionStateVariableEntry object that contains the name, value, description, usage options, and a single metadata attribute of the variable. This constructor is introduced by Windows PowerShell 2.0.
SessionStateVariableEntry (String, Object, String, ScopedItemOptions, Collection)Creates a new SessionStateVariableEntry object that contains the name, value, description, usage options, and metadata attribute of the variable. This constructor is introduced by Windows PowerShell 2.0.


Show:
© 2016 Microsoft