Hashtable.OnDeserialization(Object) 方法

定义

实现 ISerializable 接口,并在完成反序列化之后引发反序列化事件。Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.

public:
 virtual void OnDeserialization(System::Object ^ sender);
public virtual void OnDeserialization (object sender);
abstract member OnDeserialization : obj -> unit
override this.OnDeserialization : obj -> unit
Public Overridable Sub OnDeserialization (sender As Object)

参数

sender
Object

反序列化事件源。The source of the deserialization event.

实现

异常

与当前 SerializationInfo 相关联的 Hashtable 对象无效。The SerializationInfo object associated with the current Hashtable is invalid.

注解

此方法是 @no__t 0 操作,其中 n CountThis method is an O(n) operation, where n is Count.

由于对 @no__t 的枚举器进行序列化和反序列化可能导致元素重新排序,因此不能在不调用 Reset 方法的情况下继续枚举。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.

适用于

另请参阅