Dictionary<TKey,TValue>.GetObjectData(SerializationInfo, StreamingContext) Metoda

Definice

Implementuje ISerializable rozhraní a vrátí data potřebná k serializaci Dictionary<TKey,TValue> instance.Implements the ISerializable interface and returns the data needed to serialize the Dictionary<TKey,TValue> instance.

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parametry

info
SerializationInfo

SerializationInfoObjekt, který obsahuje informace potřebné k serializaci Dictionary<TKey,TValue> instance.A SerializationInfo object that contains the information required to serialize the Dictionary<TKey,TValue> instance.

context
StreamingContext

StreamingContextStruktura, která obsahuje zdroj a cíl serializovaného datového proudu přidruženého k Dictionary<TKey,TValue> instanci.A StreamingContext structure that contains the source and destination of the serialized stream associated with the Dictionary<TKey,TValue> instance.

Implementuje

Atributy

Výjimky

info je null.info is null.

Poznámky

Tato metoda je operace O ( n ), kde n je Count .This method is an O(n) operation, where n is Count.

Platí pro

Viz také