您的位置:首页 > 编程语言 > VB

【VB6】VB6类库项目中的Persistable

2016-02-13 17:53 525 查看
原文链接:
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 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]


The Persistable property syntax has these parts:

PartDescription
objectAn object expression that evaluates to an object in the Applies To list.
numberAn integer that specifies persistence behavior, as described in Settings.
Settings

The settings for number are:

ConstantSettingDescription
vbNotPersistable0(Default) The object can't be persisted.
vbPersistable1The object can be persisted.
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: