This topic has not yet been rated - Rate this topic

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)
'Usage
Dim instance As SessionStateEntryVisibility

public enum SessionStateEntryVisibility
public enum SessionStateEntryVisibility
public enum SessionStateEntryVisibility
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 Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)