mscorlib(4.0.0.0) API with additions
System.MissingMemberException Class Reference

The exception that is thrown when there is an attempt to dynamically access a class member that does not exist or that is not declared as public. If a member in a class library has been removed or renamed, recompile any assemblies that reference that library. More...

Inheritance diagram for System.MissingMemberException:
[legend]
Collaboration diagram for System.MissingMemberException:
[legend]

Public Member Functions

 MissingMemberException ()
 Initializes a new instance of the T:System.MissingMemberException class. More...
 
 MissingMemberException (string message)
 Initializes a new instance of the T:System.MissingMemberException class with a specified error message. More...
 
 MissingMemberException (string message, Exception inner)
 Initializes a new instance of the T:System.MissingMemberException class with a specified error message and a reference to the inner exception that is the root cause of this exception. More...
 
 MissingMemberException (string className, string memberName)
 Initializes a new instance of the T:System.MissingMemberException class with the specified class name and member name. More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 Sets the T:System.Runtime.Serialization.SerializationInfo object with the class name, the member name, the signature of the missing member, and additional exception information. More...
 
- Public Member Functions inherited from System.MemberAccessException
 MemberAccessException ()
 Initializes a new instance of the T:System.MemberAccessException class. More...
 
 MemberAccessException (string message)
 Initializes a new instance of the T:System.MemberAccessException class with a specified error message. More...
 
 MemberAccessException (string message, Exception inner)
 Initializes a new instance of the T:System.MemberAccessException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
- Public Member Functions inherited from System.SystemException
 SystemException ()
 Initializes a new instance of the T:System.SystemException class. More...
 
 SystemException (string message)
 Initializes a new instance of the T:System.SystemException class with a specified error message. More...
 
 SystemException (string message, Exception innerException)
 Initializes a new instance of the T:System.SystemException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
- Public Member Functions inherited from System.Exception
 Exception ()
 Initializes a new instance of the T:System.Exception class. More...
 
 Exception (string message)
 Initializes a new instance of the T:System.Exception class with a specified error message. More...
 
 Exception (string message, Exception innerException)
 Initializes a new instance of the T:System.Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
virtual Exception GetBaseException ()
 When overridden in a derived class, returns the T:System.Exception that is the root cause of one or more subsequent exceptions. More...
 
override string ToString ()
 Creates and returns a string representation of the current exception. More...
 
new Type GetType ()
 Gets the runtime type of the current instance. More...
 
- Public Member Functions inherited from System.Runtime.InteropServices._Exception
new bool Equals (object obj)
 Provides COM objects with version-independent access to the M:System.Object.Equals(System.Object) method. More...
 
new int GetHashCode ()
 Provides COM objects with version-independent access to the M:System.Object.GetHashCode method. More...
 

Protected Member Functions

 MissingMemberException (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the T:System.MissingMemberException class with serialized data. More...
 
- Protected Member Functions inherited from System.MemberAccessException
 MemberAccessException (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the T:System.MemberAccessException class with serialized data. More...
 
- Protected Member Functions inherited from System.SystemException
 SystemException (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the T:System.SystemException class with serialized data. More...
 
- Protected Member Functions inherited from System.Exception
 Exception (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the T:System.Exception class with serialized data. More...
 

Protected Attributes

string ClassName
 Holds the class name of the missing member. More...
 
string MemberName
 Holds the name of the missing member. More...
 
byte [] Signature
 Holds the signature of the missing member. More...
 

Properties

override string? Message [get]
 Gets the text string showing the class name, the member name, and the signature of the missing member. More...
 
- Properties inherited from System.Exception
virtual string Message [get]
 Gets a message that describes the current exception. More...
 
virtual IDictionary Data [get]
 Gets a collection of key/value pairs that provide additional user-defined information about the exception. More...
 
Exception InnerException [get]
 Gets the T:System.Exception instance that caused the current exception. More...
 
MethodBase TargetSite [get]
 Gets the method that throws the current exception. More...
 
virtual string StackTrace [get]
 Gets a string representation of the immediate frames on the call stack. More...
 
virtual string HelpLink [get, set]
 Gets or sets a link to the help file associated with this exception. More...
 
virtual string Source [get, set]
 Gets or sets the name of the application or the object that causes the error. More...
 
int HResult [get, protected set]
 Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. More...
 
EventHandler< SafeSerializationEventArgsSerializeObjectState
 Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. More...
 
- Properties inherited from System.Runtime.InteropServices._Exception
string Message [get]
 Provides COM objects with version-independent access to the P:System.Exception.Message property. More...
 
string StackTrace [get]
 Provides COM objects with version-independent access to the P:System.Exception.StackTrace property. More...
 
string HelpLink [get, set]
 Provides COM objects with version-independent access to the P:System.Exception.HelpLink property. More...
 
string Source [get, set]
 Provides COM objects with version-independent access to the P:System.Exception.Source property. More...
 
Exception InnerException [get]
 Provides COM objects with version-independent access to the P:System.Exception.InnerException property. More...
 
MethodBase TargetSite [get]
 Provides COM objects with version-independent access to the P:System.Exception.TargetSite property. More...
 

Detailed Description

The exception that is thrown when there is an attempt to dynamically access a class member that does not exist or that is not declared as public. If a member in a class library has been removed or renamed, recompile any assemblies that reference that library.

Definition at line 12 of file MissingMemberException.cs.

Constructor & Destructor Documentation

◆ MissingMemberException() [1/5]

System.MissingMemberException.MissingMemberException ( )

Initializes a new instance of the T:System.MissingMemberException class.

Definition at line 42 of file MissingMemberException.cs.

◆ MissingMemberException() [2/5]

System.MissingMemberException.MissingMemberException ( string  message)

Initializes a new instance of the T:System.MissingMemberException class with a specified error message.

Parameters
messageThe message that describes the error.

Definition at line 51 of file MissingMemberException.cs.

◆ MissingMemberException() [3/5]

System.MissingMemberException.MissingMemberException ( string  message,
Exception  inner 
)

Initializes a new instance of the T:System.MissingMemberException class with a specified error message and a reference to the inner exception that is the root cause of this exception.

Parameters
messageThe error message that explains the reason for the exception.
innerAn instance of T:System.Exception that is the cause of the current Exception. If inner is not a null reference (Nothing in Visual Basic), then the current Exception is raised in a catch block handling inner .

Definition at line 61 of file MissingMemberException.cs.

◆ MissingMemberException() [4/5]

System.MissingMemberException.MissingMemberException ( SerializationInfo  info,
StreamingContext  context 
)
protected

Initializes a new instance of the T:System.MissingMemberException class with serialized data.

Parameters
infoThe object that holds the serialized object data.
contextThe contextual information about the source or destination.

Definition at line 70 of file MissingMemberException.cs.

◆ MissingMemberException() [5/5]

System.MissingMemberException.MissingMemberException ( string  className,
string  memberName 
)

Initializes a new instance of the T:System.MissingMemberException class with the specified class name and member name.

Parameters
classNameThe name of the class in which access to a nonexistent member was attempted.
memberNameThe name of the member that cannot be accessed.

Definition at line 92 of file MissingMemberException.cs.

Member Function Documentation

◆ GetObjectData()

override void System.MissingMemberException.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

Sets the T:System.Runtime.Serialization.SerializationInfo object with the class name, the member name, the signature of the missing member, and additional exception information.

Parameters
infoThe object that holds the serialized object data.
contextThe contextual information about the source or destination.
Exceptions
T:System.ArgumentNullExceptionThe info object is null.

Implements System.Runtime.Serialization.ISerializable.

Definition at line 103 of file MissingMemberException.cs.

Member Data Documentation

◆ ClassName

string System.MissingMemberException.ClassName
protected

Holds the class name of the missing member.

Definition at line 15 of file MissingMemberException.cs.

◆ MemberName

string System.MissingMemberException.MemberName
protected

Holds the name of the missing member.

Definition at line 18 of file MissingMemberException.cs.

◆ Signature

byte [] System.MissingMemberException.Signature
protected

Holds the signature of the missing member.

Definition at line 21 of file MissingMemberException.cs.

Property Documentation

◆ Message

override string? System.MissingMemberException.Message
get

Gets the text string showing the class name, the member name, and the signature of the missing member.

Returns
The error message string.

Definition at line 27 of file MissingMemberException.cs.


The documentation for this class was generated from the following file: