Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Serialize Method

ListViewItem.Serialize Method

Serializes the item.

[Visual Basic]
Protected Overridable Sub Serialize( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
protected virtual void Serialize(
 SerializationInfo info,
 StreamingContext context
protected: virtual void Serialize(
 SerializationInfo* info,
 StreamingContext context
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

See Also

ListViewItem Class | ListViewItem Members | System.Windows.Forms Namespace | Deserialize | StreamingContext | SerializationInfo

© 2015 Microsoft