Edit

Share via


SortedSet<T>.ISerializable.GetObjectData Method

Definition

Implements the ISerializable interface, and returns the data that you need to serialize the SortedSet<T> instance.

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

Parameters

info
SerializationInfo

A SerializationInfo object that contains the information that is required to serialize the SortedSet<T> instance.

context
StreamingContext

A StreamingContext structure that contains the source and destination of the serialized stream associated with the SortedSet<T> instance.

Implements

Exceptions

info is null.

Remarks

This member is an explicit interface member implementation. It can be used only when the SortedSet<T> instance is cast to an ISerializable interface.

Applies to