原文链接:
https://msdn.microsoft.com/en-us/library/aa268076(v=vs.60).aspx
转载内容:
Visual Basic Reference
Visual Studio 6.0
Persistable Property
See Also ExampleApplies 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]
ThePersistableproperty Syntax has these parts:
Part | Description |
object | Anobject expressionthat evaluates to an object in the Applies To list. |
number | An integer that specifies persistence behavior,as described in Settings. |
Settings
The settings fornumberare:
Setting | vbNotPersistable | 0 | (Default) The object can't be persisted. |
vbPersistable | 1 | The object can be persisted. |
Remarks
ThePersistableproperty is only available for classes that are public and creatable. WhenPersistableis set tovbPersistable,the following events are added to the class:InitProperties,ReadProperties,andWriteProperties. ThePropertyChangedmethod is added to the class as well.
原文链接:https://www.f2er.com/vb/257129.html