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

Definizione

Implementa l'interfaccia ISerializable e restituisce i dati necessari a serializzare l'istanza di Dictionary<TKey,TValue>.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)

Parametri

info
SerializationInfo

Oggetto SerializationInfo che contiene le informazioni necessarie a serializzare l'istanza di Dictionary<TKey,TValue>.A SerializationInfo object that contains the information required to serialize the Dictionary<TKey,TValue> instance.

context
StreamingContext

Struttura StreamingContext che contiene l'origine e la destinazione del flusso serializzato associato all'istanza dell'insieme Dictionary<TKey,TValue>.A StreamingContext structure that contains the source and destination of the serialized stream associated with the Dictionary<TKey,TValue> instance.

Implementazioni

Attributi

Eccezioni

info è null.info is null.

Commenti

Questo metodo è un'operazione O ( n ), dove n è Count .This method is an O(n) operation, where n is Count.

Si applica a

Vedi anche