Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception.
Assembly: mscorlib (in mscorlib.dll)
The exception state object implements the ISafeSerializationData interface.
When the event is subscribed to, the exception is deserialized and created as an empty exception. The exception's constructor is not run, and the exception state is also deserialized. The CompleteDeserialization callback method of the exception state object is then notified so that it can push deserialized data into the empty exception.
The event enables transparent exception types to serialize and deserialize exception data. Transparent code can execute commands within the bounds of the permission set it is operating within, but cannot execute, call, derive from, or contain critical code.
If the event is not subscribed to, deserialization occurs as usual using the Exception constructor.Notes to Implementers
If this event is subscribed to and used, all derived types that follow in the inheritance hierarchy must implement the same serialization mechanism.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.