Sets the SerializationInfo with information about the exception.
Visual Basic syntax
Public Overrides Sub
GetObjectData
(ByVal info As SerializationInfo, ByVal context As StreamingContext)
C# syntax
public override void
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.
Usage
Overrides Exception.GetObjectData.