SafeArrayTypeMismatchException Konstruktoren
Definition
Initialisiert eine neue Instanz der SafeArrayTypeMismatchException
-Klasse.Initializes a new instance of the SafeArrayTypeMismatchException
class.
Überlädt
SafeArrayTypeMismatchException() |
Initialisiert eine neue Instanz der |
SafeArrayTypeMismatchException(String) |
Initialisiert eine neue Instanz der |
SafeArrayTypeMismatchException(SerializationInfo, StreamingContext) |
Initialisiert eine neue Instanz der |
SafeArrayTypeMismatchException(String, Exception) |
Initialisiert eine neue Instanz der SafeArrayTypeMismatchException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.Initializes a new instance of the SafeArrayTypeMismatchException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
SafeArrayTypeMismatchException()
Initialisiert eine neue Instanz der SafeArrayTypeMismatchException
-Klasse mit Standardwerten.Initializes a new instance of the SafeArrayTypeMismatchException
class with default values.
public:
SafeArrayTypeMismatchException();
public SafeArrayTypeMismatchException ();
Public Sub New ()
Hinweise
SafeArrayTypeMismatchException
erbt von SystemException.SafeArrayTypeMismatchException
inherits from SystemException. Dieser Konstruktor legt die Eigenschaften des- Exception Objekts fest, wie in der folgenden Tabelle gezeigt.This constructor sets the properties of the Exception object as shown in the following table.
EigenschaftProperty | WertValue |
---|---|
InnerException | null .null . |
Message | Eine lokalisierte Fehlermeldungs Zeichenfolge.A localized error message string. |
Gilt für:
SafeArrayTypeMismatchException(String)
Initialisiert eine neue Instanz der SafeArrayTypeMismatchException
-Klasse mit der angegebenen Meldung.Initializes a new instance of the SafeArrayTypeMismatchException
class with the specified message.
public:
SafeArrayTypeMismatchException(System::String ^ message);
public SafeArrayTypeMismatchException (string message);
new System.Runtime.InteropServices.SafeArrayTypeMismatchException : string -> System.Runtime.InteropServices.SafeArrayTypeMismatchException
Public Sub New (message As String)
Parameter
- message
- String
Die Meldung, in der die Ursache für die Ausnahme angegeben wird.The message that indicates the reason for the exception.
Hinweise
SafeArrayTypeMismatchException
erbt von SystemException.SafeArrayTypeMismatchException
inherits from SystemException. Dieser Konstruktor legt die Eigenschaften des- Exception Objekts fest, wie in der folgenden Tabelle gezeigt.This constructor sets the properties of the Exception object as shown in the following table.
EigenschaftProperty | WertValue |
---|---|
InnerException | null .null . |
Message | message |
Gilt für:
SafeArrayTypeMismatchException(SerializationInfo, StreamingContext)
Initialisiert eine neue Instanz der SafeArrayTypeMismatchException
-Klasse aus Serialisierungsdaten.Initializes a new instance of the SafeArrayTypeMismatchException
class from serialization data.
protected:
SafeArrayTypeMismatchException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SafeArrayTypeMismatchException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Runtime.InteropServices.SafeArrayTypeMismatchException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.SafeArrayTypeMismatchException
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.
Ausnahmen
info
ist null
.info
is null
.
Hinweise
Dieser Konstruktor wird während der Deserialisierung aufgerufen, um das über einen Datenstrom übertragene Ausnahmeobjekt wieder zusammenzusetzen.This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. Weitere Informationen finden Sie unter System.Runtime.Serialization.For more information, see System.Runtime.Serialization.
SafeArrayTypeMismatchException
erbt von SystemException.SafeArrayTypeMismatchException
inherits from SystemException.
Gilt für:
SafeArrayTypeMismatchException(String, Exception)
Initialisiert eine neue Instanz der SafeArrayTypeMismatchException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.Initializes a new instance of the SafeArrayTypeMismatchException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public:
SafeArrayTypeMismatchException(System::String ^ message, Exception ^ inner);
public SafeArrayTypeMismatchException (string message, Exception inner);
new System.Runtime.InteropServices.SafeArrayTypeMismatchException : string * Exception -> System.Runtime.InteropServices.SafeArrayTypeMismatchException
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 nicht null
ist, wird die aktuelle Ausnahme in einem catch
-Block ausgelöst, der die innere Ausnahme behandelt.If the inner
parameter is not null
, 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 den gleichen Wert zurück, der an den Konstruktor übergeben wird, oder null
, wenn die InnerException-Eigenschaft den Wert der inneren Ausnahme nicht an den Konstruktor übergibt.The InnerException property returns the same value that is passed into the constructor, or null
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 SafeArrayTypeMismatchException-Instanz aufgeführt.The following table shows the initial property values for an instance of SafeArrayTypeMismatchException.
EigenschaftProperty | WertValue |
---|---|
InnerException | Der Verweis auf die interne Ausnahme.The inner exception reference. |
Message | Die Zeichenfolge der Fehlermeldung.The error message string. |