Export (0) Print
Expand All

Hashtable.GetObjectData Method

Implements the ISerializable interface and returns the data needed to serialize the Hashtable.

[Visual Basic]
Public Overridable Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
) Implements ISerializable.GetObjectData
[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
);

Parameters

info
A SerializationInfo object containing the information required to serialize the Hashtable.
context
A StreamingContext object containing the source and destination of the serialized stream associated with the Hashtable.

Implements

ISerializable.GetObjectData

Exceptions

Exception Type Condition
ArgumentNullException info is a null reference (Nothing in Visual Basic).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Hashtable Class | Hashtable Members | System.Collections Namespace | ISerializable | SerializationInfo | StreamingContext | OnDeserialization

Show:
© 2014 Microsoft