PostSharp4.3/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: 4.3.48.0 (4.3.48.0)
Syntax
C#
[SerializableAttribute]
public sealed class ThreadMismatchException : ThreadingException

The ThreadMismatchException type exposes the following members.

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.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also