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

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top


Show: