MissingMethodException Konstruktoren
Definition
Initialisiert eine neue Instanz der MissingMethodException-Klasse.Initializes a new instance of the MissingMethodException class.
Überlädt
MissingMethodException() |
Initialisiert eine neue Instanz der MissingMethodException-Klasse.Initializes a new instance of the MissingMethodException class. |
MissingMethodException(String) |
Initialisiert eine neue Instanz der MissingMethodException-Klasse mit einer angegebenen Fehlermeldung.Initializes a new instance of the MissingMethodException class with a specified error message. |
MissingMethodException(SerializationInfo, StreamingContext) |
Initialisiert eine neue Instanz der MissingMethodException-Klasse mit serialisierten Daten.Initializes a new instance of the MissingMethodException class with serialized data. |
MissingMethodException(String, Exception) |
Initialisiert eine neue Instanz der MissingMethodException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.Initializes a new instance of the MissingMethodException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
MissingMethodException(String, String) |
Initialisiert eine neue Instanz der MissingMethodException-Klasse unter Verwendung des angegebenen Klassen- und Methodennamens.Initializes a new instance of the MissingMethodException class with the specified class name and method name. |
MissingMethodException()
Initialisiert eine neue Instanz der MissingMethodException-Klasse.Initializes a new instance of the MissingMethodException class.
public:
MissingMethodException();
public MissingMethodException ();
Public Sub New ()
Hinweise
Dieser Konstruktor initialisiert die Message -Eigenschaft der neuen Instanz mit einer vom System bereitgestellten Meldung, die den Fehler beschreibt, z. b. "Es wurde versucht, auf eine fehlende Methode zuzugreifen."This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "Attempted to access a missing method." Diese Meldung berücksichtigt die aktuelle Systemkultur.This message takes into account the current system culture.
In der folgenden Tabelle werden die anfänglichen Eigenschaftenwerte für eine MissingMethodException-Instanz aufgeführt.The following table shows the initial property values for an instance of MissingMethodException.
EigenschaftProperty | WertValue |
---|---|
InnerException | Ein NULL-Verweis (Nothing in Visual Basic).A null reference (Nothing in Visual Basic). |
Message | Die lokalisierte Zeichenfolge mit der Fehlermeldung.The localized error message string. |
MissingMethodException(String)
Initialisiert eine neue Instanz der MissingMethodException-Klasse mit einer angegebenen Fehlermeldung.Initializes a new instance of the MissingMethodException class with a specified error message.
public:
MissingMethodException(System::String ^ message);
public MissingMethodException (string message);
new MissingMethodException : string -> MissingMethodException
Public Sub New (message As String)
Parameter
Hinweise
Der Inhalt des message
Parameters sollte für den Benutzer verständlich sein.The content of the message
parameter should be understandable by the user. Der Aufrufer dieses Konstruktors muss sicherstellen, dass diese Zeichenfolge für die aktuelle Systemkultur lokalisiert wurde.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
In der folgenden Tabelle werden die anfänglichen Eigenschaftenwerte für eine MissingMethodException-Instanz aufgeführt.The following table shows the initial property values for an instance of MissingMethodException.
EigenschaftProperty | WertValue |
---|---|
InnerException | Ein NULL-Verweis (Nothing in Visual Basic).A null reference (Nothing in Visual Basic). |
Message | Die Zeichenfolge der Fehlermeldung.The error message string. |
Siehe auch
MissingMethodException(SerializationInfo, StreamingContext)
Initialisiert eine neue Instanz der MissingMethodException-Klasse mit serialisierten Daten.Initializes a new instance of the MissingMethodException class with serialized data.
protected:
MissingMethodException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected MissingMethodException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new MissingMethodException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> MissingMethodException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameter
- info
- SerializationInfo
Das Objekt, das die Daten des serialisierten Objekts enthält.The object that holds the serialized object data.
- context
- StreamingContext
Die Kontextinformationen zur Quelle bzw. zum Ziel.The contextual information about the source or destination.
Hinweise
Dieser Konstruktor wird während der Deserialisierung aufgerufen, um das über einen Stream übertragene Ausnahmeobjekt wiederherzustellen.This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. Weitere Informationen finden Sie unter XML- und SOAP-Serialisierung.For more information, see XML and SOAP Serialization.
Siehe auch
MissingMethodException(String, Exception)
Initialisiert eine neue Instanz der MissingMethodException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.Initializes a new instance of the MissingMethodException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public:
MissingMethodException(System::String ^ message, Exception ^ inner);
public MissingMethodException (string message, Exception inner);
new MissingMethodException : string * Exception -> MissingMethodException
Public Sub New (message As String, inner As Exception)
Parameter
- message
- String
Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.The error message that explains the reason for the exception.
- inner
- Exception
Die Ausnahme, die die Ursache der aktuellen Ausnahme ist.The exception that is the cause of the current exception. Wenn der inner
-Parameter kein NULL-Verweis ist (Nothing
in Visual Basic), wird die aktuelle Ausnahme in einem catch
-Block ausgelöst, der die innere Ausnahme behandelt.If the inner
parameter is not a null reference (Nothing
in Visual Basic), the current exception is raised in a catch
block that handles the inner exception.
Hinweise
Eine Ausnahme, die als direktes Ergebnis einer vorhergehenden Ausnahme ausgelöst wird, muss in der InnerException-Eigenschaft über einen Verweis auf die vorhergehende Ausnahme verfügen.An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. Die InnerException-Eigenschaft gibt denselben Wert zurück, der an den Konstruktor übergeben wurde, bzw. einen NULL-Verweis (Nothing
in Visual Basic), wenn die InnerException-Eigenschaft nicht den Wert für die innere Ausnahme für den Konstruktor bereitstellt.The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing
in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.
In der folgenden Tabelle werden die anfänglichen Eigenschaftenwerte für eine MissingMethodException-Instanz aufgeführt.The following table shows the initial property values for an instance of MissingMethodException.
EigenschaftProperty | WertValue |
---|---|
InnerException | Der Verweis auf die interne Ausnahme.The inner exception reference. |
Message | Die Zeichenfolge der Fehlermeldung.The error message string. |
Siehe auch
MissingMethodException(String, String)
Initialisiert eine neue Instanz der MissingMethodException-Klasse unter Verwendung des angegebenen Klassen- und Methodennamens.Initializes a new instance of the MissingMethodException class with the specified class name and method name.
public:
MissingMethodException(System::String ^ className, System::String ^ methodName);
public MissingMethodException (string className, string methodName);
new MissingMethodException : string * string -> MissingMethodException
Public Sub New (className As String, methodName As String)
Parameter
- className
- String
Der Name der Klasse, in der versucht wurde, auf eine nicht vorhandene Methode zuzugreifen.The name of the class in which access to a nonexistent method was attempted.
- methodName
- String
Der Name de Methode, auf die nicht zugegriffen werden kann.The name of the method that cannot be accessed.