When overridden in a derived class, sets the SerializationInfo with information about the exception.
[SecurityPermissionAttribute()]
[SecurityPermissionAttribute()]
public override void GetObjectData(
SerializationInfo info,
StreamingContext context
)
Public Overrides Sub GetObjectData( _
ByVal info As SerializationInfo, _
ByVal context As StreamingContext _
)
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.
GetObjectData sets a SerializationInfo with all the exception object data targeted for serialization. During de-serialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document