Export (0) Print
Expand All

SessionState Members

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.

The following tables list the members exposed by the SessionState type.

  Name Description
  SessionState Initializes a new instance of the SessionState class.
Top

  Name Description
public property Applications Gets a list of the applications that are available to the module or runspace that uses this session state. This property is introduced in Windows PowerShell 2.0.
public property Drive Gets the drive information for the providers that are available to the module or runspace that is using this session state.
public property InvokeCommand Gets methods that can be used to invoke the commands available in the session state. This property is introduced in Windows PowerShell 2.0.
public property InvokeProvider Gets access to the providers available in the session state. This property is introduced in Windows PowerShell 2.0.
public property LanguageMode Gets the Windows PowerShell language elements that are available to external requests to this session state. This property is introduced in Windows PowerShell 2.0.
public property Module Gets information about the module that is using this session state. This property is introduced in Windows PowerShell 2.0.
public property Path Gets the path information for the providers that are available to the module or runspace that is using this session state.
public property Provider Gets information about the providers that are available to the module or runspace that uses this session state.
public property PSVariable Gets information about the variables that are available to the module or runspace that uses this session state.
public property Scripts Gets the scripts that are available to the module or runspace that uses this session state. This property is introduced in Windows PowerShell 2.0.
public property UseFullLanguageModeInDebugger Gets a value that indicates whether the Windows PowerShell debugger uses FullLanguage mode when debugging scripts in the session. This property is introduced in Windows PowerShell 2.0.
Top

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodstaticIsVisibleOverloaded. Determines whether a command, variable, or object should be made visible based on the element origin (where the element was called) and whether the element is private or public. This method is introduced in Windows PowerShell 2.0.
public methodstaticThrowIfNotVisibleChecks the visibility of an object based on where the command was called. If the check fails, an exception is thrown. This method is introduced in Windows PowerShell 2.0.
public methodToString  (Inherited from Object)
Top

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
Top


Show:
© 2015 Microsoft