GetObjectData method

Sets the SerializationInfo with information about the exception. Overrides [external link] Exception.GetObjectData.

Syntax
Visual Basic

Public Overrides Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
)
C#

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.

See also