System.Runtime.InteropServices._Exception.GetObjectData Method

Provides COM objects with version-independent access to the Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) method

Syntax

public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)

Parameters

info
The System.Runtime.Serialization.SerializationInfo object that holds the serialized object data about the exception being thrown.
context
The System.Runtime.Serialization.StreamingContext structure that contains contextual information about the source or destination.

Remarks

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) method sets the System.Runtime.Serialization.SerializationInfo object with information about the exception.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0