SessionStateCategory Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the type of session state element that was being accessed when an error occurred.

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

public enum SessionStateCategory

Member nameDescription
Alias

Used when an exception is thrown accessing an alias.

Cmdlet

Used when an exception is thrown accessing a cmdlet.

CmdletProvider

Used when an exception is thrown accessing a Cmdlet Provider.

Command

Used when generically accessing any type of command...

Drive

Used when an exception is thrown accessing a drive.

Filter

Used when an exception is thrown accessing a filter.

Function

Used when an exception is thrown accessing a function.

Resource

Other resources not covered by the previous categories...

Scope

Used when an exception is thrown manipulating the PowerShell language scopes.

Variable

Used when an exception is thrown accessing a variable.

Return to top
Show: