Aracılığıyla paylaş


Dictionary<TKey,TValue>.GetObjectData Yöntem

Tanım

Dikkat

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Arabirimi uygular ISerializable ve örneği seri hale Dictionary<TKey,TValue> getirmek için gereken verileri döndürür.

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.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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)

Parametreler

info
SerializationInfo

SerializationInfo Örneği seri hale Dictionary<TKey,TValue> getirmek için gereken bilgileri içeren bir nesne.

context
StreamingContext

StreamingContext Örnekle ilişkilendirilmiş serileştirilmiş akışın kaynağını ve hedefini Dictionary<TKey,TValue> içeren bir yapı.

Uygulamalar

Öznitelikler

Özel durumlar

info, null değeridir.

Açıklamalar

Bu yöntem bir O(n) işlemidir ve burada n olur Count.

Şunlara uygulanır

Ayrıca bkz.