Dela via


SessionStateUnauthorizedAccessException Class

Definition

SessionStateUnauthorizedAccessException occurs when a change to a session state object cannot be completed because the object is read-only or constant, or because an object which is declared constant cannot be removed or made non-constant.

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

Constructors

SessionStateUnauthorizedAccessException()

Constructs a SessionStateUnauthorizedAccessException.

SessionStateUnauthorizedAccessException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a SessionStateUnauthorizedAccessException using serialized data.

SessionStateUnauthorizedAccessException(String, Exception)

Constructs a SessionStateUnauthorizedAccessException.

SessionStateUnauthorizedAccessException(String)

Constructs a SessionStateUnauthorizedAccessException.

Properties

ErrorRecord

Gets the error record information for this exception.

(Inherited from SessionStateException)
ItemName

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

(Inherited from SessionStateException)
SessionStateCategory

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

(Inherited from SessionStateException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializes the exception data.

(Inherited from SessionStateException)

Applies to