Implements the ISerializable interface and returns the data needed to serialize the Dictionary.
[Visual Basic] Overridable Public Sub GetObjectData( _ ByVal info As SerializationInfo, _ ByVal context As StreamingContext _ ) [C#] public virtual void GetObjectData( SerializationInfo info, StreamingContext context ); [C++] public: virtual void GetObjectData( SerializationInfo* info, StreamingContext context ); [JScript] public function GetObjectData( info : SerializationInfo, context : StreamingContext );
None.
Exception Type | Condition |
---|---|
ArgumentNullException | info is a null reference (in Visual Basic Nothing). |
This method can be overridden by a derived class.
A context intercepts calls to the class members and enforce policies that are applied to the class, such as synchronization.
Dictionary Class | Dictionary Members | System.Collections Namespace | ISerializable | SerializationInfo | StreamingContext | OnDeserialization