HashSet<T>.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);
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 物件有關聯的 HashSet<T> 物件是無效的。The SerializationInfo object associated with the current HashSet<T> object is invalid.

備註

呼叫這個方法是 (的 n) 作業,其中 nCountCalling this method is an O(n) operation, where n is Count.

適用於