←Select platform

GetObjectData Method

Summary
When overridden in a derived class, sets the SerializationInfo with information about the exception.
Syntax
C#
VB
C++
[SecurityPermissionAttribute()] 
[SecurityPermissionAttribute()] 
public override void GetObjectData( 
   SerializationInfo info, 
   StreamingContext context 
) 
Public Overrides Sub GetObjectData( _ 
   ByVal info As SerializationInfo, _ 
   ByVal context As StreamingContext _ 
)  
public: 
void GetObjectData(  
   SerializationInfo^ info, 
   StreamingContext context 
) override  

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.

Remarks

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.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.