SessionStateException SessionStateException SessionStateException Class

Definition

SessionStateException represents an error working with session state objects: variables, aliases, functions, filters, drives, or providers.

public class SessionStateException : System.Management.Automation.RuntimeException
type SessionStateException = class
    inherit RuntimeException
Public Class SessionStateException
Inherits RuntimeException
Inheritance
SessionStateExceptionSessionStateExceptionSessionStateException
Derived

Constructors

SessionStateException() SessionStateException() SessionStateException()

Constructs a SessionStateException

SessionStateException(SerializationInfo, StreamingContext) SessionStateException(SerializationInfo, StreamingContext) SessionStateException(SerializationInfo, StreamingContext)

Constructs a SessionStateException using serialized data.

SessionStateException(String) SessionStateException(String) SessionStateException(String)

Constructs a SessionStateException

SessionStateException(String, Exception) SessionStateException(String, Exception) SessionStateException(String, Exception)

Constructs a SessionStateException

Properties

ErrorRecord ErrorRecord ErrorRecord

Gets the error record information for this exception.

ItemName ItemName ItemName

Gets the name of session state object the error occurred on.

SessionStateCategory SessionStateCategory SessionStateCategory

Gets the category of session state object the error occurred on.

StackTrace StackTrace StackTrace Inherited from RuntimeException
WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement Inherited from RuntimeException

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Serializes the exception data.

Applies to