SessionStateCategory Enum

Definition

Categories of session state objects, used by SessionStateException.

C++
public enum class SessionStateCategory
Inheritance
SessionStateCategory

Fields

Name Value Description
Variable 0

Used when an exception is thrown accessing a variable.

Alias 1

Used when an exception is thrown accessing an alias.

Function 2

Used when an exception is thrown accessing a function.

Filter 3

Used when an exception is thrown accessing a filter.

Drive 4

Used when an exception is thrown accessing a drive.

CmdletProvider 5

Used when an exception is thrown accessing a Cmdlet Provider.

Scope 6

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

Command 7

Used when generically accessing any type of command...

Resource 8

Other resources not covered by the previous categories...

Cmdlet 9

Used when an exception is thrown accessing a cmdlet.

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0