Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ScopedItemOptions Enum
Definition
- Namespace:
- System.Management.Automation
- Assembly:
- System.Management.Automation.dll
- Package:
- Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
- Package:
- System.Management.Automation v7.4.15
- Package:
- System.Management.Automation v7.5.6
- Package:
- System.Management.Automation v7.6.1
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public enum class ScopedItemOptions
[System.Flags]
public enum ScopedItemOptions
[<System.Flags>]
type ScopedItemOptions =
Public Enum 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. |
