【VB6】VB6类库项目中的Persistable
2016-02-13 17:53
525 查看
原文链接:
https://msdn.microsoft.com/en-us/library/aa268076(v=vs.60).aspx
转载内容:
Visual Studio 6.0
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.
Syntax
The Persistable property syntax has these parts:
Settings
The settings for number are:
Remarks
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.
https://msdn.microsoft.com/en-us/library/aa268076(v=vs.60).aspx
转载内容:
Visual Basic Reference
Visual Studio 6.0
Persistable Property
See Also Example Applies ToSets a value that determines if an object can save and restore data across instances. May only be set at design time.
Syntax
object.Persistable [= number]
The Persistable property syntax has these parts:
Part | Description |
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:
Constant | Setting | Description |
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.
相关文章推荐
- 【VB6】VB6类库项目中的MTSTransactionMode
- 【VB6】VB6类库项目中Instancing属性
- vb学习之十三
- vb学习之十二
- vb学习之十一
- vb学习之十
- vb学习之六
- vb学习之五
- vb学习之四
- vb学习之三
- vb学习之二
- vb学习之一
- 【VB】窗体透明二:窗体逐渐变透明 4000 (包括控件)
- 【VB】窗体透明一:窗体透明,控件不透明(穿过)
- 【VB】点击控件,窗体不获得焦点
- 关于vba一列区别变成两列的时候,保留前后数字最前面的零
- VB脚本编写的小题库程序
- VB6.0中提示:该部件的许可证信息没有找到,在设计环境中,没有合适的许可证使用该功能”的解决办法
- VB程序使用管理员权限
- VB SendKeys 语句