SafeSerializationEventArgs::AddSerializedState Method (ISafeSerializationData^)

.NET Framework (current version)
 

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: