This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

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.
Inheritance Hierarchy
System.Object
  System.Exception
    PostSharp.Patterns.Threading.ObjectReadOnlyException

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.33.0 (5.0.33.0)
Syntax
C#
[SerializableAttribute]
public sealed class ObjectReadOnlyException : Exception

The ObjectReadOnlyException type exposes the following members.

Constructors
  NameDescription
Public methodObjectReadOnlyException()
Initializes a new instance of the ObjectReadOnlyException class with the default error message.
Public methodObjectReadOnlyException(String)
Initializes a new instance of the ObjectReadOnlyException class with a given error message.
Public methodObjectReadOnlyException(String, Exception)
Initializes a new instance of the ObjectReadOnlyException class with a given error message and inner exception.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
See Also