ThreadAccessException Class |
System.Exception
PostSharp.Patterns.Threading.ThreadingException
PostSharp.Patterns.Threading.LockNotHeldException
PostSharp.Patterns.Threading.ThreadAccessException
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 4.3.48.0 (4.3.48.0)
[SerializableAttribute] public class ThreadAccessException : LockNotHeldException
The ThreadAccessException type exposes the following members.
Name | Description | |
---|---|---|
ThreadAccessException() |
Initializes a new instance of the ThreadAccessException class with the default error message.
| |
ThreadAccessException(String) |
Initializes a new instance of the ThreadAccessException class with a given error message.
| |
ThreadAccessException(SerializationInfo, StreamingContext) |
Deserialization constructor.
| |
ThreadAccessException(String, Exception) |
Initializes a new instance of the ThreadAccessException 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.) |
This exception is raised when the calling thread accesses the object without going through a public method.
For the ReaderWriterSynchronizedThreadingModel, the exception may mean that a public method was not annotated with an access custom attribute (ReaderAttribute, WriterAttribute and others).