SafeSerializationEventArgs.AddSerializedState Method (ISafeSerializationData)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
Show: