Serializes the item.
[Visual Basic] Protected Overridable Sub Serialize( _ ByVal info As SerializationInfo, _ ByVal context As StreamingContext _ ) [C#] protected virtual void Serialize( SerializationInfo info, StreamingContext context ); [C++] protected: virtual void Serialize( SerializationInfo* info, StreamingContext context ); [JScript] protected function Serialize( info : SerializationInfo, context : StreamingContext );
- A SerializationInfo that holds the data needed to serialize the item.
- A StreamingContext that represents the source and destination of the stream being serialized.
Notes to Inheritors: This method should be overridden if you are going to serialize and deserialize your derived version of this class and your derived class contains state information you want to be serialized and deserialized. You must call the base class implementation of this method in order to ensure that your items are serialized and deserialized properly.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family