SessionStateEntryVisibility Enumeration
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Defines the visibility of a session state entry to request from outside the session state. This class is introduced in Windows PowerShell 2.0.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
| Member name | Description |
|---|---|
| Private | The entry is not available to requests from outside the session state. This field is introduced in Windows PowerShell 2.0. |
| Public | The entry is available to requests from outside the session state. This field is introduced in Windows PowerShell 2.0. |
The entries of the session state define what is available to the module or runspace that defines the session state.
A session state entry that is public is similar to a public member of an API. Just as a public member of an API is available to those calling the API, a public session state entry can be used outside of the module or runspace that is using the session state. In contrast a session state entry that is private is similar to a private member of an API. A private session state entry can be used only by the session-state, or internally by a public entry of the session state.
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.