Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Thread­Mismatch­Exception Class

ThreadMismatchException Class

Exception thrown when a thread attempts to access an object that is affined to another thread.
Inheritance Hierarchy
System.Object
  System.Exception
    PostSharp.Patterns.Threading.ThreadingException
      PostSharp.Patterns.Threading.ThreadMismatchException

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.0.18.0 (6.0.18.0)
Syntax
C#
[SerializableAttribute]
public sealed class ThreadMismatchException : ThreadingException
Constructors
  NameDescription
Public methodThreadMismatchException()
Initializes a new ThreadMismatchException.
Public methodThreadMismatchException(String)
Initializes a new ThreadMismatchException and sets the error message.
Public methodThreadMismatchException(String, Exception)
Initializes a new ThreadMismatchException and sets the error message and the inner exception.
See Also