When overridden in a derived class, sets the SerializationInfo with information about the exception.
GetObjectData sets a SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.
Exception Type | Condition |
---|---|
ArgumentNullException | The info parameter is a null reference (Nothing in Visual Basic). |
NullableNullValueException Class | NullableTypes Namespace