System.Runtime.Serialization.SafeSerializationEventArgs.AddSerializedState Method

Stores the state of the exception.

Syntax

public void AddSerializedState (ISafeSerializationData serializedState)

Parameters

serializedState
A state object that is serialized with the instance.

Remarks

The class or structure that implements the System.Runtime.Serialization.ISafeSerializationData allows you to serialize custom data in security-transparent code.

For more information and an example, see the System.Runtime.Serialization.ISafeSerializationData class.

Requirements

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0