Dela via


SessionStateException Class

Definition

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

public ref class SessionStateException : System::Management::Automation::RuntimeException
[System.Serializable]
public class SessionStateException : System.Management.Automation.RuntimeException
public class SessionStateException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type SessionStateException = class
    inherit RuntimeException
type SessionStateException = class
    inherit RuntimeException
Public Class SessionStateException
Inherits RuntimeException
Inheritance
SessionStateException
Derived
Attributes

Constructors

SessionStateException()

Constructs a SessionStateException.

SessionStateException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a SessionStateException using serialized data.

SessionStateException(String, Exception)

Constructs a SessionStateException.

SessionStateException(String)

Constructs a SessionStateException.

Properties

ErrorRecord

Gets the error record information for this exception.

ItemName

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

SessionStateCategory

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

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializes the exception data.

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to