System.MissingMemberException Class

public class MissingMemberException : MemberAccessException

Base Types

Object
  Exception
    SystemException
      MemberAccessException
        MissingMemberException

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Represents the error that occurs when there is an attempt to dynamically access a class member that does not exist.

Description

Normally a compilation error is generated if code attempts to access a nonexistent member of a class. MissingMemberException is designed to handle cases where an attempt is made to dynamically access a renamed or deleted member of an assembly that is not referenced by its strong name. The MissingMemberException is thrown when code in a dependent assembly attempts to access a missing member in an assembly that was modified.

[Note: The Base Class Library includes the following derived types:

When appropriate, use these types instead of MissingMemberException.

]

See Also

System Namespace

Members

MissingMemberException Constructors

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


MissingMemberException() Constructor

public MissingMemberException();

Summary

Constructs and initializes a new instance of the MissingMemberException class.

Description

This constructor initializes the System.MissingMemberException.Message property of the new instance to a system-supplied message that describes the error, such as "Attempted to access a missing member." This message takes into account the current system culture.

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

See Also

System.MissingMemberException Class, System Namespace

MissingMemberException(System.String) Constructor

public MissingMemberException(string message);

Summary

Constructs and initializes a new instance of the MissingMemberException 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.MissingMemberException.Message property of the new instance using message. If message is null , the System.MissingMemberException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.

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

See Also

System.MissingMemberException Class, System Namespace

MissingMemberException(System.String, System.Exception) Constructor

public MissingMemberException(string message, Exception inner);

Summary

Constructs and initializes a new instance of the MissingMemberException 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.
inner
An instance of Exception that is the cause of the current exception. If inner is not a null reference, the current exception was raised in a catch block handling inner .

Description

This constructor initializes the System.MissingMemberException.Message property of the new instance using message and the System.MissingMemberException.InnerException property using inner. If message is null , the System.MissingMemberException.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.MissingMemberException Class, System Namespace