Open sandboxFocus

Constructor ThreadAccessException

ThreadAccessException()

Initializes a new instance of the ThreadAccessException class with the default error message.

Declaration
public ThreadAccessException()

ThreadAccessException(string)

Initializes a new instance of the ThreadAccessException class with a given error message.

Declaration
public ThreadAccessException(string message)
Parameters
Type Name Description
string message

The error message.

ThreadAccessException(string, Exception)

Initializes a new instance of the ThreadAccessException class with a given error message and inner exception.

Declaration
public ThreadAccessException(string message, Exception inner)
Parameters
Type Name Description
string message

The error message.

Exception inner

The Exception wrapped by the new ThreadAccessException.

ThreadAccessException(SerializationInfo, StreamingContext)

Initializes a new instance of the ThreadAccessException class with serialized data.

Declaration
protected ThreadAccessException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The object that holds the serialized object data.

StreamingContext context

The contextual information about the source or destination.