NullableTypes Class Library

NullableNullValueException.ISerializable.GetObjectData Method 

When overridden in a derived class, sets the SerializationInfo with information about the exception.

[Visual Basic]
Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
) Implements _
   ISerializable.GetObjectData
[C#]
new void ISerializable.GetObjectData(
   SerializationInfo info,
   StreamingContext context
);

Parameters

info
The SerializationInfo that holds the serialized object data about the exception being thrown.
context
The StreamingContext that contains contextual information about the source or destination.

Implements

ISerializable.GetObjectData

Remarks

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.

Exceptions

Exception TypeCondition
ArgumentNullException The info parameter is a null reference (Nothing in Visual Basic).

See Also

NullableNullValueException Class | NullableTypes Namespace