Serialization Events

The serialization process raises four events, which are summarized in Table 43.1.

Table 43.1 Serialization Events

image

Serialization events are handled differently than classic events. There is an attribute for each event that you can handle as follows:

image

The runtime takes care of invoking the specified method according to the moment represented by each attribute. In this way you can provide additional actions based on serialization events.

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.