This topic has not yet been rated - Rate this topic

SessionState Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Provides access to data that describes the current operating environment of a Windows PowerShell runspace or module. The properties of this class retrieve objects that can then be used to either monitor or modify the session state data.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
'Usage
Dim instance As SessionState

public sealed class SessionState
public final class SessionState
public final class SessionState

A session state can describe the global session state of a runspace or it can describe the session- state of a module that has been added to a runspace. In both cases, the session state data is public data that is stored in the current instance of the Windows PowerShell engine.


System.Object
  System.Management.Automation.SessionState
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

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