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