SortedSet<T>::GetObjectData Method (SerializationInfo^, StreamingContext)

.NET Framework (current version)
 

Implements the System.Runtime.Serialization::ISerializable interface and returns the data that you must have to serialize a SortedSet<T> object.

Namespace:   System.Collections.Generic
Assembly:  System (in System.dll)

protected:
virtual void GetObjectData(
	SerializationInfo^ info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization::SerializationInfo^

A System.Runtime.Serialization::SerializationInfo object that contains the information that is required to serialize the SortedSet<T> object.

context
Type: System.Runtime.Serialization::StreamingContext

A System.Runtime.Serialization::StreamingContext structure that contains the source and destination of the serialized stream associated with the SortedSet<T> object.

Exception Condition
ArgumentNullException

info is null.

Calling this method is an O(n) operation, where n is Count.

SecurityPermission

for providing serialization services. Security action: LinkDemand. Associated enumeration: SecurityPermissionFlag::SerializationFormatter

.NET Framework
Available since 4.0
Return to top
Show: