ObjectReadOnlyException Class |
Exception thrown by objects that have the FreezableThreadingModel or ImmutableThreadingModel
when an attempt is made to modify the object after it has been made read-only.

Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.55.0 (5.0.55.0)

C#
[SerializableAttribute] public sealed class ObjectReadOnlyException : Exception
The ObjectReadOnlyException type exposes the following members.

Name | Description | |
---|---|---|
![]() | ObjectReadOnlyException() |
Initializes a new instance of the ObjectReadOnlyException class with the default error message.
|
![]() | ObjectReadOnlyException(String) |
Initializes a new instance of the ObjectReadOnlyException class with a given error message.
|
![]() | ObjectReadOnlyException(String, Exception) |
Initializes a new instance of the ObjectReadOnlyException class with a given error message and inner exception.
|

Name | Description | |
---|---|---|
![]() | QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |
