SessionStateVariableEntry SessionStateVariableEntry SessionStateVariableEntry Class

Definition

public sealed class SessionStateVariableEntry : System.Management.Automation.Runspaces.ConstrainedSessionStateEntry
type SessionStateVariableEntry = class
    inherit ConstrainedSessionStateEntry
Public NotInheritable Class SessionStateVariableEntry
Inherits ConstrainedSessionStateEntry
Inheritance

Constructors

SessionStateVariableEntry(String, Object, String) SessionStateVariableEntry(String, Object, String) SessionStateVariableEntry(String, Object, String)

Is used to define a variable that should be created when the runspace is opened. Note - if this object is cloned, then the clone will contain a reference to the original object not a clone of it.

SessionStateVariableEntry(String, Object, String, ScopedItemOptions) SessionStateVariableEntry(String, Object, String, ScopedItemOptions) SessionStateVariableEntry(String, Object, String, ScopedItemOptions)

Is used to define a variable that should be created when the runspace is opened. Note - if this object is cloned, then the clone will contain a reference to the original object not a clone of it.

SessionStateVariableEntry(String, Object, String, ScopedItemOptions, Attribute) SessionStateVariableEntry(String, Object, String, ScopedItemOptions, Attribute) SessionStateVariableEntry(String, Object, String, ScopedItemOptions, Attribute)

Is used to define a variable that should be created when the runspace is opened. Note - if this object is cloned, then the clone will contain a reference to the original object not a clone of it.

SessionStateVariableEntry(String, Object, String, ScopedItemOptions, Collection<Attribute>) SessionStateVariableEntry(String, Object, String, ScopedItemOptions, Collection<Attribute>) SessionStateVariableEntry(String, Object, String, ScopedItemOptions, Collection<Attribute>)

Is used to define a variable that should be created when the runspace is opened. Note - if this object is cloned, then the clone will contain a reference to the original object not a clone of it.

Properties

Attributes Attributes Attributes

The attributes that will be attached to this object.

Description Description Description

The description associated with this variable.

Module Module Module Inherited from InitialSessionStateEntry
Name Name Name Inherited from InitialSessionStateEntry
Options Options Options

The options associated with this variable (e.g. readonly, allscope, etc.)

PSSnapIn PSSnapIn PSSnapIn Inherited from InitialSessionStateEntry
Value Value Value

The value to bind to this variable.

Visibility Visibility Visibility Inherited from ConstrainedSessionStateEntry

Methods

Clone() Clone() Clone()

Shallow-clone this object...

Applies to