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

Definicja

Implementuje ISerializable interfejs i zwraca dane, które są konieczne do serializacji Dictionary<TKey,TValue> wystąpienia.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

SerializationInfoObiekt, który zawiera informacje wymagane do serializacji Dictionary<TKey,TValue> wystąpienia.A SerializationInfo object that contains the information required to serialize the Dictionary<TKey,TValue> instance.

context
StreamingContext

StreamingContextStruktura, która zawiera źródło i miejsce docelowe serializowanego strumienia skojarzonego z Dictionary<TKey,TValue> wystąpieniem.A StreamingContext structure that contains the source and destination of the serialized stream associated with the Dictionary<TKey,TValue> instance.

Implementuje

Atrybuty

Wyjątki

info to null.info is null.

Uwagi

Ta metoda jest n operacją o (), gdzie n is Count .This method is an O(n) operation, where n is Count.

Dotyczy

Zobacz też