ScopedItemOptions Enum

Definition

The options that define some of the constraints for session state items like variables, aliases, and functions.

This enumeration supports a bitwise combination of its member values.

C++
public enum class ScopedItemOptions
Inheritance
ScopedItemOptions
Attributes

Fields

Name Value Description
None 0

There are no constraints on the item.

ReadOnly 1

The item is readonly. It can be removed but cannot be changed.

Constant 2

The item cannot be removed or changed. This flag can only be set a variable creation.

Private 4

The item is private to the scope it was created in and cannot be seen from child scopes.

AllScope 8

The item is propagated to each new child scope created.

Unspecified 16

The option is not specified by the user.

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0