Hashtable.OnDeserialization Method (Object)


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

Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.

Namespace:   System.Collections
Assembly:  mscorlib (in mscorlib.dll)

abstract OnDeserialization : 
        sender:Object -> unit
override OnDeserialization : 
        sender:Object -> unit


Type: System.Object

The source of the deserialization event.

Exception Condition

The System.Runtime.Serialization.SerializationInfo object associated with the current Hashtable is invalid.

This method is an O(n) operation, where n is Count.

Because serializing and deserializing an enumerator for a Hashtable can cause the elements to become reordered, it is not possible to continue enumeration without calling the Reset method.

.NET Framework
Available since 1.1
Return to top