加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

【VB6】VB6类库项目中的Persistable

发布时间:2020-12-17 07:41:22 所属栏目:百科 来源:网络整理
导读:原文链接: 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 d

原文链接:

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.

Syntax

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:

Constant
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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读