COMException-Konstruktor: (SerializationInfo, StreamingContext)
Veröffentlicht: Oktober 2016
Initialisiert eine neue Instanz der COMException -Klasse aus Serialisierungsdaten.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
protected COMException(
SerializationInfo info,
StreamingContext context
)
protected:
COMException(
SerializationInfo^ info,
StreamingContext context
)
new :
info:SerializationInfo *
context:StreamingContext -> COMException
Protected Sub New (
info As SerializationInfo,
context As StreamingContext
)
Parameter
info
Type: System.Runtime.Serialization.SerializationInfoDie SerializationInfo -Objekt, das die serialisierten Objektdaten enthält.
context
Type: System.Runtime.Serialization.StreamingContextDas StreamingContext Objekt, das die Kontextinformationen zur Quelle bzw. zum Ziel bereitstellt.
Ausnahmen
Exception | Condition |
---|---|
ArgumentNullException | info ist null. |
Hinweise
Dieser Konstruktor wird während der Deserialisierung aufgerufen, um das über einen Stream übertragene Ausnahmeobjekt wiederherzustellen. Weitere Informationen finden Sie unter XML- und SOAP-Serialisierung.
COMException erbt von ExternalException.
Versionsinformationen
.NET Framework
Verfügbar seit 1.1
Siehe auch
ExternalException
COMException Überladen
COMException-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang