SessionStateVariableEntry SessionStateVariableEntry SessionStateVariableEntry Constructors

Definition

Overloads

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)

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.

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.

public SessionStateVariableEntry (string name, object value, string description);
new System.Management.Automation.Runspaces.SessionStateVariableEntry : string * obj * string -> System.Management.Automation.Runspaces.SessionStateVariableEntry
Public Sub New (name As String, value As Object, description As String)
Parameters
name
String String String

The name of the variable

value
Object Object Object

The value to set the variable to

description
String String String

A descriptive string to attach to the variable.

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.

public SessionStateVariableEntry (string name, object value, string description, System.Management.Automation.ScopedItemOptions options);
new System.Management.Automation.Runspaces.SessionStateVariableEntry : string * obj * string * System.Management.Automation.ScopedItemOptions -> System.Management.Automation.Runspaces.SessionStateVariableEntry
Public Sub New (name As String, value As Object, description As String, options As ScopedItemOptions)
Parameters
name
String String String

The name of the variable

value
Object Object Object

The value to set the variable to

description
String String String

A descriptive string to attach to the variable.

options
ScopedItemOptions ScopedItemOptions ScopedItemOptions

Options like readonly, constant, allscope, etc.

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.

public SessionStateVariableEntry (string name, object value, string description, System.Management.Automation.ScopedItemOptions options, Attribute attribute);
new System.Management.Automation.Runspaces.SessionStateVariableEntry : string * obj * string * System.Management.Automation.ScopedItemOptions * Attribute -> System.Management.Automation.Runspaces.SessionStateVariableEntry
Parameters
name
String String String

The name of the variable

value
Object Object Object

The value to set the variable to

description
String String String

A descriptive string to attach to the variable.

options
ScopedItemOptions ScopedItemOptions ScopedItemOptions

Options like readonly, constant, allscope, etc.

attribute
Attribute Attribute Attribute

A single attribute to attach to the variable.

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.

public SessionStateVariableEntry (string name, object value, string description, System.Management.Automation.ScopedItemOptions options, System.Collections.ObjectModel.Collection<Attribute> attributes);
new System.Management.Automation.Runspaces.SessionStateVariableEntry : string * obj * string * System.Management.Automation.ScopedItemOptions * System.Collections.ObjectModel.Collection<Attribute> -> System.Management.Automation.Runspaces.SessionStateVariableEntry
Public Sub New (name As String, value As Object, description As String, options As ScopedItemOptions, attributes As Collection(Of Attribute))
Parameters
name
String String String

The name of the variable

value
Object Object Object

The value to set the variable to

description
String String String

A descriptive string to attach to the variable.

options
ScopedItemOptions ScopedItemOptions ScopedItemOptions

Options like readonly, constant, allscope, etc.

attributes
Collection<Attribute>

A list of attributes to attach to the variable.

Applies to