Visual Basic Reference
See Also Example Applies To
Sets a value that determines if an object can save and restore data across instances. May only be set at design time.
object.Persistable [= number]
The Persistable property syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
|number||An integer that specifies persistence behavior, as described in Settings.|
The settings for number are:
|vbNotPersistable||0||(Default) The object can't be persisted.|
|vbPersistable||1||The object can be persisted.|
The Persistable property is only available for classes that are public and creatable. When Persistable is set to vbPersistable, the following events are added to the class: InitProperties, ReadProperties, and WriteProperties. The PropertyChanged method is added to the class as well.