When overridden in a derived class, sets the SerializationInfo
with information about the exception.
Namespace:
BargeExAssembly: BargeEx (in BargeEx.dll)
Version: 3.0.400.140 (3.0.400.140)
Syntax
| C# |
|---|
public override void GetObjectData( SerializationInfo info, StreamingContext context ) |
| Visual Basic (Declaration) |
|---|
Public Overrides Sub GetObjectData ( _ info As SerializationInfo, _ context As StreamingContext _ ) |
| Visual C++ |
|---|
public: virtual void GetObjectData( SerializationInfo^ info, StreamingContext context ) override |
Parameters
- info
- Type: System.Runtime.Serialization..::.SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- Type: System.Runtime.Serialization..::.StreamingContext
The StreamingContext that contains contextual information about the source or destination.
Implements
ISerializable..::.GetObjectData(SerializationInfo, StreamingContext)_Exception..::.GetObjectData(SerializationInfo, StreamingContext)
Remarks
GetObjectData
sets a SerializationInfo
with all the exception object data targeted for serialization. During
deserialization, the exception is reconstituted from the
SerializationInfo
transmitted over the stream.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | The info parameter is a null reference (Nothing in Visual Basic). |