Export (0) Print
Expand All

ListViewItem.Serialize Method

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
);

Parameters

info
A SerializationInfo that holds the data needed to serialize the item.
context
A StreamingContext that represents the source and destination of the stream being serialized.

Remarks

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.

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

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

Show:
© 2015 Microsoft