SessionState Property

PSCmdlet.SessionState Property

Gets information about the current state of the current session where the cmdlet is running.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As PSCmdlet
Dim value As SessionState

value = instance.SessionState

public SessionState SessionState { get; }
/** @property */
public SessionState get_SessionState ()

public function get SessionState () : SessionState

Property Value

A SessionState object that describes the current state of the session.

For more information about session state, see Windows PowerShell Session State.

For more information about cmdlets, see Windows PowerShell Cmdlets.

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

© 2015 Microsoft