System.TypeUnloadedException Class

public class TypeUnloadedException : SystemException

Base Types

Object
  Exception
    SystemException
      TypeUnloadedException

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Represents the error that occurs when there is an attempt to access a Type that has been unloaded.

See Also

System Namespace

Members

TypeUnloadedException Constructors

TypeUnloadedException() Constructor
TypeUnloadedException(System.String) Constructor
TypeUnloadedException(System.String, System.Exception) Constructor


TypeUnloadedException() Constructor

public TypeUnloadedException();

Summary

Constructs and initializes a new instance of the TypeUnloadedException class.

Description

This constructor initializes the System.TypeUnloadedException.Message property of the new instance to a system-supplied message that describes the error, such as "Type has been unloaded." This message takes into account the current system culture.

The System.TypeUnloadedException.InnerException property of the new instance is initialized to null .

See Also

System.TypeUnloadedException Class, System Namespace

TypeUnloadedException(System.String) Constructor

public TypeUnloadedException(string message);

Summary

Constructs and initializes a new instance of the TypeUnloadedException class.

Parameters

message
A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Description

This constructor initializes the System.TypeUnloadedException.Message property of the new instance using message. If message is null , the System.TypeUnloadedException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.

The System.TypeUnloadedException.InnerException property of the new instance is initialized to null .

See Also

System.TypeUnloadedException Class, System Namespace

TypeUnloadedException(System.String, System.Exception) Constructor

public TypeUnloadedException(string message, Exception innerException);

Summary

Constructs and initializes a new instance of the TypeUnloadedException class.

Parameters

message
A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
innerException
An instance of Exception that is the cause of the current exception. If innerException is non-null, then the current Exception was raised in a catch block handling innerException.

Description

This constructor initializes the System.TypeUnloadedException.Message property of the new instance using message and the System.TypeUnloadedException.InnerException property using innerException. If message is null , the System.TypeUnloadedException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.

[Note: For more information on inner exceptions, see System.Exception.InnerException.]

See Also

System.TypeUnloadedException Class, System Namespace