SafeSerializationEventArgs.AddSerializedState Method (ISafeSerializationData)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Stores the state of the exception.

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

public void AddSerializedState(
	ISafeSerializationData serializedState


Type: System.Runtime.Serialization.ISafeSerializationData

A state object that is serialized with the instance.

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

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

.NET Framework
Available since 4.0
Return to top